![]() |
Mutex Class ReferenceMutex container class, used by Lock.
More...
|
Public Member Functions | |
Mutex () | |
~Mutex () | |
void | Lock () |
void | Unlock () |
Private Attributes | |
pthread_mutex_t | m_mutex |
Friends | |
class | Lock |
Definition at line 46 of file Mutex.h.
Mutex::Mutex | ( | ) |
Mutex::~Mutex | ( | ) |
void Mutex::Lock | ( | ) |
void Mutex::Unlock | ( | ) |
Definition at line 68 of file Mutex.cpp.
References m_mutex.
Referenced by SocketHandler::Select(), Lock::~Lock(), and SocketHandler::~SocketHandler().
00069 { 00070 #ifdef _WIN32 00071 ::ReleaseMutex(m_mutex); 00072 #else 00073 pthread_mutex_unlock(&m_mutex); 00074 #endif 00075 }
void Mutex::Lock [friend] |
Definition at line 48 of file Mutex.h.
Referenced by Lock::Lock(), SocketHandler::Select(), and SocketHandler::SocketHandler().
pthread_mutex_t Mutex::m_mutex [private] |