[BUG_FIXED] Make retro-compatibility with xp sp2
This commit is contained in:
parent
251e987a71
commit
0ee535b263
@ -27,16 +27,17 @@
|
||||
|
||||
|
||||
#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()
|
||||
{
|
||||
_operationMutex.lock();
|
||||
//_operationMutex.lock();
|
||||
}
|
||||
|
||||
LongRunningOperation::~LongRunningOperation()
|
||||
{
|
||||
_operationMutex.unlock();
|
||||
//_operationMutex.unlock();
|
||||
}
|
Loading…
Reference in New Issue
Block a user