Synchronization Primitives
[Threading]

Classes

class  Event
 Implements wait/notify (uses Event on windoze and a condition on posix. More...
class  InterlockCounter
 An integer counter whose value is modified in an atomic fashion. More...
class  Mutex
 Mutually exclusive locking mechnism. More...
class  RWLock
 A multiple reader single writer lock. Readers cannot upgrade their lock to writer. LockRead/UnlockRead and LockWrite/UnlockWrite must alway be called in pairs and cannot be interleved. More...
class  Semaphore
 A counting semaphore -- a synchronization primitive that allows multiple processes to coordinate access to a shared resource. A Semaphore has an initial value, which represents the quantity of some shared resource. When a process acquires the semaphore, this value is decremented, and when it releases the semaphore, the value is incremented. More...

Typedefs

typedef RefCountPtr< EventEventPtr
typedef WeakReference< Event,
EventPtr
EventRef
typedef RefCountPtr< MutexMutexPtr
typedef WeakReference< Mutex,
MutexPtr
MutexRef
typedef RefCountPtr< RWLockRWLockPtr
typedef WeakReference< RWLock,
RWLockPtr
RWLockRef
typedef RefCountPtr< SemaphoreSemaphorePtr
typedef WeakReference
< Semaphore, SemaphorePtr
SemaphoreRef

Functions

 REGISTER_TYPEOF (498, EventPtr)
 REGISTER_TYPEOF (450, EventRef)
void ValidateType (const Event &e)
void ValidateType (const Event *e)
 REGISTER_TYPEOF (452, Event)
void ValidateType (const InterlockCounter &i)
 REGISTER_TYPEOF (458, InterlockCounter)
 REGISTER_TYPEOF (460, MutexPtr)
 REGISTER_TYPEOF (462, MutexRef)
void ValidateType (const Mutex &mtx)
void ValidateType (const Mutex *mtx)
 REGISTER_TYPEOF (464, Mutex)
 REGISTER_TYPEOF (466, RWLockPtr)
 REGISTER_TYPEOF (468, RWLockRef)
void ValidateType (const RWLock &rw)
 REGISTER_TYPEOF (470, RWLock)
 REGISTER_TYPEOF (472, SemaphorePtr)
 REGISTER_TYPEOF (475, SemaphoreRef)
 REGISTER_TYPEOF (476, Semaphore)