7 #if (defined(__OS_IRIX__) || defined(__OS_LINUX__) || defined(__OS_MACOSX__))
9 typedef pthread_mutex_t MUTEX;
10 typedef pthread_cond_t CONDITION;
11 #define STK_MUTEXT_SUPPORTED
13 #elif defined(__OS_WINDOWS__)
17 typedef CRITICAL_SECTION MUTEX;
18 typedef HANDLE CONDITION;
19 #define STK_MUTEXT_SUPPORTED
21 #elif defined(__RTOS__)
23 #include <freertos/FreeRTOS.h>
24 #include <freertos/semphr.h>
26 typedef SemaphoreHandle_t MUTEX;
27 typedef SemaphoreHandle_t* CONDITION;
28 #define STK_MUTEXT_SUPPORTED
33 #ifdef STK_MUTEXT_SUPPORTED
STK mutex class.
Definition: Mutex.h:51
~Mutex()
Class destructor.
Mutex()
Default constructor.
void signal(void)
Signal the condition variable.
void unlock(void)
Unlock the mutex.
void lock(void)
Lock the mutex.
void wait(void)
Wait indefinitely on the mutex condition variable.
STK base class.
Definition: Stk.h:144
The STK namespace.
Definition: ADSR.h:8