version 1.10, 2006/06/26 23:30:26
|
version 1.11, 2006/08/09 21:12:42
|
|
|
#ifdef PEGASUS_SPINLOCK_USE_PTHREADS | #ifdef PEGASUS_SPINLOCK_USE_PTHREADS |
# include <pthread.h> | # include <pthread.h> |
#else | #else |
# include "IPC.h" |
# include "Mutex.h" |
#endif | #endif |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
#ifdef PEGASUS_SPINLOCK_USE_PTHREADS | #ifdef PEGASUS_SPINLOCK_USE_PTHREADS |
pthread_mutex_lock(&_spinLockInitMutex); | pthread_mutex_lock(&_spinLockInitMutex); |
#else | #else |
_spinLockInitMutex.lock(pegasus_thread_self()); |
_spinLockInitMutex.lock(); |
#endif | #endif |
| |
if (spinLockPoolInitialized == 0) | if (spinLockPoolInitialized == 0) |