From 51b3d28cee12d84bfeeb0e19bbd4e4e48185ba5f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 2 Sep 2012 15:40:39 +0000 Subject: Fixed debug-only code leaking into release mode in cCriticalSection, making it incompilable in release mode. git-svn-id: http://mc-server.googlecode.com/svn/trunk@823 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cCriticalSection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/cCriticalSection.cpp') diff --git a/source/cCriticalSection.cpp b/source/cCriticalSection.cpp index 3da12ebf4..47e2c2c2d 100644 --- a/source/cCriticalSection.cpp +++ b/source/cCriticalSection.cpp @@ -84,6 +84,7 @@ void cCriticalSection::Unlock() +#ifdef _DEBUG bool cCriticalSection::IsLocked(void) { return m_IsLocked; @@ -97,6 +98,7 @@ bool cCriticalSection::IsLockedByCurrentThread(void) { return m_IsLocked && (m_OwningThreadID == cIsThread::GetCurrentID()); } +#endif // _DEBUG -- cgit v1.2.3