Fattal: protect fftwf calls with a mutex (shared also with the denoise routine)

Initialization of the fftwMutex now happens in rtengine::init()
This commit is contained in:
Alberto Griggio
2017-11-05 13:34:33 +01:00
parent 34ed12c318
commit ceb3ebf24b
3 changed files with 7 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ namespace rtengine
const Settings* settings;
MyMutex* lcmsMutex = nullptr;
MyMutex *fftwMutex = nullptr;
int init (const Settings* s, Glib::ustring baseDir, Glib::ustring userSettingsDir, bool loadAll)
{
@@ -101,6 +102,7 @@ int init (const Settings* s, Glib::ustring baseDir, Glib::ustring userSettingsDi
Color::init ();
delete lcmsMutex;
lcmsMutex = new MyMutex;
fftwMutex = new MyMutex;
return 0;
}