1
0

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
This commit is contained in:
madmaxoft@gmail.com 2012-09-02 15:40:39 +00:00
parent e1c83be32d
commit 51b3d28cee

View File

@ -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