
|
Database::Mutex Class ReferenceMutex container class, used by Lock.
More...
#include <Database.h>
Collaboration diagram for Database::Mutex:
List of all members.
Detailed Description
Mutex container class, used by Lock.
Definition at line 43 of file Database.h.
Constructor & Destructor Documentation
Database::Mutex::Mutex |
( |
|
) |
|
|
|
Definition at line 248 of file Database.cpp.
References m_mutex. 00249 {
00250 #ifdef _WIN32
00251 m_mutex = ::CreateMutex(NULL, FALSE, NULL);
00252 #else
00253 pthread_mutex_init(&m_mutex, NULL);
00254 #endif
00255 }
|
Database::Mutex::~Mutex |
( |
|
) |
|
|
|
Definition at line 258 of file Database.cpp.
References m_mutex. 00259 {
00260 #ifdef _WIN32
00261 ::CloseHandle(m_mutex);
00262 #else
00263 pthread_mutex_destroy(&m_mutex);
00264 #endif
00265 }
|
Member Function Documentation
void Database::Mutex::Lock |
( |
|
) |
|
|
void Database::Mutex::Unlock |
( |
|
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following files:
|