summaryrefslogtreecommitdiffstats
path: root/source/cCriticalSection.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 00:32:11 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 00:32:11 +0200
commitb22956013294264121aa9a8a175c299b694d396e (patch)
treea952d37a63fe653a239812799ea0e75f5bd36056 /source/cCriticalSection.h
parentFix for Rev 814, the correct cPlayer object is actually sent into the callbacks. (diff)
downloadcuberite-b22956013294264121aa9a8a175c299b694d396e.tar
cuberite-b22956013294264121aa9a8a175c299b694d396e.tar.gz
cuberite-b22956013294264121aa9a8a175c299b694d396e.tar.bz2
cuberite-b22956013294264121aa9a8a175c299b694d396e.tar.lz
cuberite-b22956013294264121aa9a8a175c299b694d396e.tar.xz
cuberite-b22956013294264121aa9a8a175c299b694d396e.tar.zst
cuberite-b22956013294264121aa9a8a175c299b694d396e.zip
Diffstat (limited to 'source/cCriticalSection.h')
-rw-r--r--source/cCriticalSection.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/cCriticalSection.h b/source/cCriticalSection.h
index a8b475503..9852a2e6c 100644
--- a/source/cCriticalSection.h
+++ b/source/cCriticalSection.h
@@ -14,8 +14,17 @@ public:
void Lock(void);
void Unlock(void);
+ #ifdef _DEBUG
+ bool IsLocked(void);
+ bool IsLockedByCurrentThread(void);
+ #endif // _DEBUG
+
private:
-
+ #ifdef _DEBUG
+ bool m_IsLocked;
+ unsigned long m_OwningThreadID;
+ #endif // _DEBUG
+
#ifdef _WIN32
CRITICAL_SECTION m_CriticalSection;
#else // _WIN32