diff options
author | Paradox <none@none> | 2009-02-09 08:16:34 -0500 |
---|---|---|
committer | Paradox <none@none> | 2009-02-09 08:16:34 -0500 |
commit | d230302b16474ff22a35243ffed6236ef4fc7fb9 (patch) | |
tree | e3679ad841a47b275756f2721f9aa24a3ee548a6 /dep/src/sockets/Mutex.cpp | |
parent | b0694d7e5e794b361fa178d55fefdb98cf47e9ca (diff) |
Replace tabs with spaces in more files.
--HG--
branch : trunk
Diffstat (limited to 'dep/src/sockets/Mutex.cpp')
-rw-r--r-- | dep/src/sockets/Mutex.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dep/src/sockets/Mutex.cpp b/dep/src/sockets/Mutex.cpp index f7a03c7d990..8284fefacd8 100644 --- a/dep/src/sockets/Mutex.cpp +++ b/dep/src/sockets/Mutex.cpp @@ -1,6 +1,6 @@ /** \file Mutex.cpp - ** \date 2004-10-30 - ** \author grymse@alhem.net + ** \date 2004-10-30 + ** \author grymse@alhem.net **/ /* Copyright (C) 2004-2007 Anders Hedstrom @@ -8,7 +8,7 @@ Copyright (C) 2004-2007 Anders Hedstrom This library is made available under the terms of the GNU GPL. If you would like to use this library in a closed-source application, -a separate license agreement is available. For information about +a separate license agreement is available. For information about the closed-source license agreement for the C++ sockets library, please visit http://www.alhem.net/Sockets/license.html and/or email license@alhem.net. @@ -37,9 +37,9 @@ namespace SOCKETS_NAMESPACE { Mutex::Mutex() { #ifdef _WIN32 - m_mutex = ::CreateMutex(NULL, FALSE, NULL); + m_mutex = ::CreateMutex(NULL, FALSE, NULL); #else - pthread_mutex_init(&m_mutex, NULL); + pthread_mutex_init(&m_mutex, NULL); #endif } @@ -47,9 +47,9 @@ Mutex::Mutex() Mutex::~Mutex() { #ifdef _WIN32 - ::CloseHandle(m_mutex); + ::CloseHandle(m_mutex); #else - pthread_mutex_destroy(&m_mutex); + pthread_mutex_destroy(&m_mutex); #endif } @@ -57,10 +57,10 @@ Mutex::~Mutex() void Mutex::Lock() { #ifdef _WIN32 - /*DWORD d =*/ WaitForSingleObject(m_mutex, INFINITE); - /// \todo check 'd' for result + /*DWORD d =*/ WaitForSingleObject(m_mutex, INFINITE); + /// \todo check 'd' for result #else - pthread_mutex_lock(&m_mutex); + pthread_mutex_lock(&m_mutex); #endif } @@ -68,9 +68,9 @@ void Mutex::Lock() void Mutex::Unlock() { #ifdef _WIN32 - ::ReleaseMutex(m_mutex); + ::ReleaseMutex(m_mutex); #else - pthread_mutex_unlock(&m_mutex); + pthread_mutex_unlock(&m_mutex); #endif } |