void st_sem_destroy(StSem *sem)
Destroy a semaphore.
StSem * st_sem_create(StBits args)
Create a semaphore.
void st_sem_post(StSem *sem)
Increment the semaphore counter.
void st_sem_wait(StSem *sem)
Wait on semaphore.
bool st_sem_trywait(StSem *sem)
Decrement the semaphore counter if it is greater than 0.
struct StSem StSem
Semaphore.
Definition sem.h:49
int StBits
The data type for bitwise operations.
Definition bits.h:114