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:
parent
e1c83be32d
commit
51b3d28cee
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user