int m_RecursionCount
Number of times that this CS is currently locked (levels of recursion).
std::recursive_mutex m_Mutex
std::thread::id m_OwningThreadID
ID of the thread that is currently holding the CS.
bool IsLockedByCurrentThread(void)
Returns true if the CS is currently locked by the thread calling this function.
bool IsLocked(void)
Returns true if the CS is currently locked.
RAII for cCriticalSection - locks the CS on creation, unlocks on destruction.
cCSLock(cCriticalSection *a_CS)
DISALLOW_COPY_AND_ASSIGN(cCSLock)
Temporary RAII unlock for a cCSLock.
cCSUnlock(cCSLock &a_Lock)
DISALLOW_COPY_AND_ASSIGN(cCSUnlock)