Add mutex to the Lensfun library access.

(try to fix #4580)
This commit is contained in:
Hombre
2018-07-14 15:52:43 +02:00
parent c30f03ea09
commit ca4f0e5239
2 changed files with 15 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ private:
lfModifier *data_;
bool swap_xy_;
int flags_;
MyMutex *lfModifierMutex;
};
class LFCamera final
@@ -121,6 +122,7 @@ private:
LFDatabase();
bool LoadDirectory(const char *dirname);
MyMutex *lfDBMutex;
static LFDatabase instance_;
lfDatabase *data_;
};