summaryrefslogtreecommitdiffstats
path: root/source/cCriticalSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cCriticalSection.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/cCriticalSection.cpp b/source/cCriticalSection.cpp
index 6bc6e805a..95ee77c3d 100644
--- a/source/cCriticalSection.cpp
+++ b/source/cCriticalSection.cpp
@@ -92,6 +92,19 @@ cCSLock::cCSLock(cCriticalSection * a_CS)
+cCSLock::cCSLock(cCriticalSection & a_CS)
+ : m_CS(&a_CS)
+ #ifdef _DEBUG
+ , m_IsLocked(false)
+ #endif
+{
+ Lock();
+}
+
+
+
+
+
cCSLock::~cCSLock()
{
Unlock();