6 #if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__)) 9 typedef pthread_mutex_t MUTEX;
10 typedef pthread_cond_t CONDITION;
12 #elif defined(__OS_WINDOWS__) 16 typedef CRITICAL_SECTION MUTEX;
17 typedef HANDLE CONDITION;
The STK namespace.
Definition: ADSR.h:6
STK base class.
Definition: Stk.h:132
void lock(void)
Lock the mutex.
void unlock(void)
Unlock the mutex.
~Mutex()
Class destructor.
Mutex()
Default constructor.
STK mutex class.
Definition: Mutex.h:36
void wait(void)
Wait indefinitely on the mutex condition variable.
void signal(void)
Signal the condition variable.