21 #if defined(G3D_LINUX) || defined(G3D_OSX)
GMutex * m
Definition: GMutex.h:111
void lock()
Definition: GThread.cpp:248
Mutual exclusion lock used for synchronization.
Definition: GMutex.h:76
bool lock()
Definition: GMutex.h:52
Definition: AtomicInt32.h:29
GMutexLock(GMutex *mutex)
Definition: GMutex.h:119
~GMutex()
Definition: GThread.cpp:228
GMutex()
Definition: GThread.cpp:215
GMutex & operator=(const GMutex &)
bool tryLock()
Definition: GThread.cpp:240
void unlock()
Definition: GThread.cpp:256
Spinlock()
Definition: GMutex.h:43
AtomicInt32 x
Definition: GMutex.h:39
void unlock()
Definition: GMutex.h:65
GMutexLock & operator=(const GMutexLock &)
A mutual exclusion lock that busy-waits when locking.
Definition: GMutex.h:36
pthread_mutexattr_t m_attr
Definition: GMutex.h:82
GMutexLock(const GMutexLock &mlock)
int32 compareAndSet(const int32 comperand, const int32 exchange)
Definition: AtomicInt32.h:142
pthread_mutex_t m_handle
Definition: GMutex.h:81
bool operator==(const GMutexLock &)
~GMutexLock()
Definition: GMutex.h:124
bool operator==(const GMutex &)