diff --git a/PowerEditor/src/MISC/Common/LongRunningOperation.cpp b/PowerEditor/src/MISC/Common/LongRunningOperation.cpp index 7191197d..e359b933 100644 --- a/PowerEditor/src/MISC/Common/LongRunningOperation.cpp +++ b/PowerEditor/src/MISC/Common/LongRunningOperation.cpp @@ -27,16 +27,17 @@ #include "LongRunningOperation.h" -#include -static std::recursive_mutex _operationMutex; +// Due to retro-compatibility reason (with xp sp2), we use ::CreateMutex() instead of std::recursive_mutex +// TODO : use Windows Mutex to lock/unlock operations + LongRunningOperation::LongRunningOperation() { - _operationMutex.lock(); + //_operationMutex.lock(); } LongRunningOperation::~LongRunningOperation() { - _operationMutex.unlock(); + //_operationMutex.unlock(); } \ No newline at end of file