aboutsummaryrefslogtreecommitdiff
path: root/dep/src/zthread/win32/FastRecursiveLock.h
diff options
context:
space:
mode:
authorParadox <none@none>2009-02-09 08:16:34 -0500
committerParadox <none@none>2009-02-09 08:16:34 -0500
commitd230302b16474ff22a35243ffed6236ef4fc7fb9 (patch)
treee3679ad841a47b275756f2721f9aa24a3ee548a6 /dep/src/zthread/win32/FastRecursiveLock.h
parentb0694d7e5e794b361fa178d55fefdb98cf47e9ca (diff)
Replace tabs with spaces in more files.
--HG-- branch : trunk
Diffstat (limited to 'dep/src/zthread/win32/FastRecursiveLock.h')
-rw-r--r--dep/src/zthread/win32/FastRecursiveLock.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/dep/src/zthread/win32/FastRecursiveLock.h b/dep/src/zthread/win32/FastRecursiveLock.h
index e1a6e7cd692..de556ac4aa8 100644
--- a/dep/src/zthread/win32/FastRecursiveLock.h
+++ b/dep/src/zthread/win32/FastRecursiveLock.h
@@ -39,21 +39,21 @@ namespace ZThread {
* @version 2.2.11
*
* This FastRecursiveLock implementation is based on a Win32 Mutex
- * object. This will perform better under high contention,
+ * object. This will perform better under high contention,
* but will not be as fast as the spin lock under reasonable
* circumstances.
- */
+ */
class FastRecursiveLock : private NonCopyable {
HANDLE _hMutex;
volatile unsigned int _count;
public:
-
+
/**
* Create a new FastRecursiveLock
*/
- FastRecursiveLock() : _count(0) {
+ FastRecursiveLock() : _count(0) {
_hMutex = ::CreateMutex(0, 0, 0);
assert(_hMutex != NULL);
@@ -62,12 +62,12 @@ class FastRecursiveLock : private NonCopyable {
}
-
+
~FastRecursiveLock() {
::CloseHandle(_hMutex);
}
-
+
void acquire() {
if(::WaitForSingleObject(_hMutex, INFINITE) != WAIT_OBJECT_0) {