summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/CriticalSection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OSSupport/CriticalSection.cpp')
-rw-r--r--src/OSSupport/CriticalSection.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/OSSupport/CriticalSection.cpp b/src/OSSupport/CriticalSection.cpp
index 27284acb0..d902e3268 100644
--- a/src/OSSupport/CriticalSection.cpp
+++ b/src/OSSupport/CriticalSection.cpp
@@ -9,7 +9,7 @@
////////////////////////////////////////////////////////////////////////////////
// cCriticalSection:
-cCriticalSection::cCriticalSection():
+cCriticalSection::cCriticalSection() :
m_RecursionCount(0)
{
}
@@ -63,9 +63,8 @@ bool cCriticalSection::IsLockedByCurrentThread(void)
////////////////////////////////////////////////////////////////////////////////
// cCSLock
-cCSLock::cCSLock(cCriticalSection * a_CS)
- : m_CS(a_CS)
- , m_IsLocked(false)
+cCSLock::cCSLock(cCriticalSection * a_CS) :
+ m_CS(a_CS), m_IsLocked(false)
{
Lock();
}
@@ -74,9 +73,8 @@ cCSLock::cCSLock(cCriticalSection * a_CS)
-cCSLock::cCSLock(cCriticalSection & a_CS)
- : m_CS(&a_CS)
- , m_IsLocked(false)
+cCSLock::cCSLock(cCriticalSection & a_CS) :
+ m_CS(&a_CS), m_IsLocked(false)
{
Lock();
}
@@ -137,7 +135,3 @@ cCSUnlock::~cCSUnlock()
{
m_Lock.Lock();
}
-
-
-
-