The object that 'lock accesses' CriticalSection object. More...
Public Member Functions | |
CriticalSectionLock (CriticalSection &cs, bool initialLock) | |
CriticalSectionLock () | |
void | SetCriticalSection (CriticalSection &cs, bool initialLock) |
CriticalSection * | GetCriticalSection () const |
bool | IsLocked () const |
~CriticalSectionLock () | |
void | Lock () |
bool | TryLock () |
void | UnsafeLock () |
void | Unlock () |
int | GetRecursionCount () |
The object that 'lock accesses' CriticalSection object.
|
inline |
It is possible to directly lock the critical section object at constructor.
cs | The critical section object to use |
initialLock | If it is true then the constructor immediately locks it. |
|
inline |
This is constructor that using set critical section later.
|
inline |
Destructor
|
inline |
Is it locked?
|
inline |
This occupies the critical section.
|
inline |
Perform Try Lock.
|
inline |
This relieves occupied critical section.