Condition variable synchronization primitive.
u32 CondVar
Condition variable.
Definition: condvar.h:13
Mutex synchronization primitive.
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
bool semaphoreTryWait(Semaphore *s)
Attempts to get lock without waiting.
void semaphoreSignal(Semaphore *s)
Increments the Semaphore to allow other threads to continue.
void semaphoreWait(Semaphore *s)
Decrements Semaphore and waits if 0.
void semaphoreInit(Semaphore *s, u64 initial_count)
Initializes a semaphore and its internal counter.
Semaphore structure.
Definition: semaphore.h:14
CondVar condvar
Condition variable object.
Definition: semaphore.h:15
Mutex mutex
Mutex object.
Definition: semaphore.h:16
u64 count
Internal counter.
Definition: semaphore.h:17
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22