summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/CriticalSection.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-06 18:15:41 +0100
committerMattes D <github@xoft.cz>2014-01-06 18:15:41 +0100
commit6dd44e623070425b8e242858a89b99a57c98b9d7 (patch)
tree34ffc9a7ed7e803270e86467429a1b99b5cb9eb9 /src/OSSupport/CriticalSection.h
parentExported cWorld::BroadcastBlockAction(). (diff)
parentUndid the changes to cryptlib.cpp. (diff)
downloadcuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar.gz
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar.bz2
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar.lz
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar.xz
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.tar.zst
cuberite-6dd44e623070425b8e242858a89b99a57c98b9d7.zip
Diffstat (limited to 'src/OSSupport/CriticalSection.h')
-rw-r--r--src/OSSupport/CriticalSection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OSSupport/CriticalSection.h b/src/OSSupport/CriticalSection.h
index 1bfe81439..73a71f5e1 100644
--- a/src/OSSupport/CriticalSection.h
+++ b/src/OSSupport/CriticalSection.h
@@ -14,9 +14,14 @@ public:
void Lock(void);
void Unlock(void);
+ // IsLocked/IsLockedByCurrentThread are only used in ASSERT statements, but because of the changes with ASSERT they must always be defined
+ // The fake versions (in Release) will not effect the program in any way
#ifdef _DEBUG
bool IsLocked(void);
bool IsLockedByCurrentThread(void);
+ #else
+ bool IsLocked(void) { return false; }
+ bool IsLockedByCurrentThread(void) { return false; }
#endif // _DEBUG
private: