diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-29 22:51:36 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-29 22:51:36 +0100 |
commit | 96da48401b0dbda2bbee3fb75178440320e16514 (patch) | |
tree | 0bcd4e7a9ad9cc44a5412ebc8aae4eef7411c210 | |
parent | makefile fix for the renamed cEvents file (hopefully) (diff) | |
download | cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar.gz cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar.bz2 cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar.lz cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar.xz cuberite-96da48401b0dbda2bbee3fb75178440320e16514.tar.zst cuberite-96da48401b0dbda2bbee3fb75178440320e16514.zip |
-rw-r--r-- | source/cCriticalSection.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/cCriticalSection.cpp b/source/cCriticalSection.cpp index bf27e9c0b..6bc6e805a 100644 --- a/source/cCriticalSection.cpp +++ b/source/cCriticalSection.cpp @@ -79,9 +79,11 @@ void cCriticalSection::Unlock() ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cCSLock
-cCSLock::cCSLock(cCriticalSection * a_CS) :
- m_CS(a_CS),
- m_IsLocked(false)
+cCSLock::cCSLock(cCriticalSection * a_CS)
+ : m_CS(a_CS)
+ #ifdef _DEBUG
+ , m_IsLocked(false)
+ #endif
{
Lock();
}
|