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