[BUG_FIXED] Make retro-compatibility with xp sp2

This commit is contained in:
Don Ho 2015-06-12 00:26:00 +02:00
parent 251e987a71
commit 0ee535b263

View File

@ -27,16 +27,17 @@
#include "LongRunningOperation.h" #include "LongRunningOperation.h"
#include <mutex>
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() LongRunningOperation::LongRunningOperation()
{ {
_operationMutex.lock(); //_operationMutex.lock();
} }
LongRunningOperation::~LongRunningOperation() LongRunningOperation::~LongRunningOperation()
{ {
_operationMutex.unlock(); //_operationMutex.unlock();
} }