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

@@ -74,6 +74,7 @@
namespace rtengine {
extern const Settings *settings;
extern MyMutex *fftwMutex;
using namespace std;
@@ -629,6 +630,7 @@ void tmo_fattal02(size_t width,
Array2Df U(width, height);
// if (fftsolver)
{
MyMutex::MyLock lock(*fftwMutex);
solve_pde_fft(&DivG, &U, multithread);//, ph);
}
// else