summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cCriticalSection.cpp2
1 files changed, 2 insertions, 0 deletions
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