Wrap uses of thread_mpi/mutex.h
[alexxy/gromacs.git] / src / gromacs / fft / fft5d.cpp
index 5cd3dfae97cc6cdab74c4c113b4f5e62e636a22a..38b105a76164480d0a03a325a9bcbef4af3f0c9f 100644 (file)
@@ -78,12 +78,11 @@ FILE* debug = 0;
 #endif
 
 #ifdef GMX_FFT_FFTW3
-#include "thread_mpi/mutex.h"
-
 #include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/mutex.h"
 /* none of the fftw3 calls, except execute(), are thread-safe, so
    we need to serialize them with this mutex. */
-static tMPI::mutex big_fftw_mutex;
+static gmx::Mutex big_fftw_mutex;
 #define FFTW_LOCK try { big_fftw_mutex.lock(); } GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR
 #define FFTW_UNLOCK try { big_fftw_mutex.unlock(); } GMX_CATCH_ALL_AND_EXIT_WITH_FATAL_ERROR
 #endif /* GMX_FFT_FFTW3 */