version 1.5, 2006/08/21 08:48:20
|
version 1.6, 2006/08/21 14:46:13
|
|
|
#endif | #endif |
} | } |
| |
|
Mutex::Mutex(RecursiveTag) |
|
{ |
|
once(&_once, _init_attr); |
|
pthread_mutex_init(&_rep.mutex, &_attr); |
|
#if defined(PEGASUS_DEBUG) |
|
_rep.count = 0; |
|
#endif |
|
} |
|
|
|
Mutex::Mutex(NonRecursiveTag) |
|
{ |
|
pthread_mutex_init(&_rep.mutex, NULL); |
|
#if defined(PEGASUS_DEBUG) |
|
_rep.count = 0; |
|
#endif |
|
} |
|
|
Mutex::~Mutex() | Mutex::~Mutex() |
{ | { |
PEGASUS_DEBUG_ASSERT(_magic); | PEGASUS_DEBUG_ASSERT(_magic); |
|
|
| |
Mutex::Mutex() | Mutex::Mutex() |
{ | { |
|
Mutex::Mutex(RecursiveTag) |
|
{ |
|
_rep.handle = CreateMutex(NULL, FALSE, NULL); |
|
#if defined(PEGASUS_DEBUG) |
|
_rep.count = 0; |
|
#endif |
|
} |
|
|
|
Mutex::Mutex(NonRecursiveTag) |
|
{ |
|
_rep.handle = CreateMutex(NULL, FALSE, NULL); |
|
#if defined(PEGASUS_DEBUG) |
|
_rep.count = 0; |
|
#endif |
|
} |
|
|
_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; |