version 1.6, 2006/08/21 14:46:13
|
version 1.7, 2006/08/21 15:46:16
|
|
|
| |
#if defined(PEGASUS_HAVE_WINDOWS_THREADS) | #if defined(PEGASUS_HAVE_WINDOWS_THREADS) |
| |
Mutex::Mutex() |
static inline void _initialize(MutexRep& rep) |
{ |
|
Mutex::Mutex(RecursiveTag) |
|
{ | { |
_rep.handle = CreateMutex(NULL, FALSE, NULL); |
rep.handle = CreateMutex(NULL, FALSE, NULL); |
#if defined(PEGASUS_DEBUG) | #if defined(PEGASUS_DEBUG) |
_rep.count = 0; |
rep.count = 0; |
#endif | #endif |
} | } |
| |
Mutex::Mutex(NonRecursiveTag) |
Mutex::Mutex() |
{ | { |
_rep.handle = CreateMutex(NULL, FALSE, NULL); |
_initialize(_rep); |
#if defined(PEGASUS_DEBUG) |
|
_rep.count = 0; |
|
#endif |
|
} | } |
| |
_rep.handle = CreateMutex(NULL, FALSE, NULL); |
Mutex::Mutex(RecursiveTag) |
#if defined(PEGASUS_DEBUG) |
{ |
_rep.count = 0; |
_initialize(_rep); |
#endif |
} |
|
|
|
Mutex::Mutex(NonRecursiveTag) |
|
{ |
|
_initialize(_rep); |
} | } |
| |
Mutex::~Mutex() | Mutex::~Mutex() |