26 data_ =
new CRITICAL_SECTION;
27 InitializeCriticalSection((LPCRITICAL_SECTION)data_);
32 DeleteCriticalSection((LPCRITICAL_SECTION)data_);
33 delete (LPCRITICAL_SECTION)data_;
40 EnterCriticalSection((LPCRITICAL_SECTION)data_);
47 LeaveCriticalSection((LPCRITICAL_SECTION)data_);
54 return TryEnterCriticalSection((LPCRITICAL_SECTION)data_);
bool acquire()
Attempts to unconditionally acquire the lock.
This class represents lattice values for constants.
bool release()
Attempts to release the lock.
MutexImpl(bool recursive=true)
Initializes the lock but doesn't acquire it.
~MutexImpl()
Releases and removes the lock Destructor.
bool tryacquire()
Attempts to acquire the lock without blocking.