cf_sem_wait¶
Category: multithreading
GitHub: cute_multithreading.h
Acquires the semaphore.
Parameters | Description |
---|---|
semaphore | The semaphore. |
Return Value¶
Returns any errors upon failure.
Remarks¶
The calling thread will sleep until the semaphore's counter is positive. When positive, the counter will be decremented once.
Related Pages¶
CF_Semaphore
cf_make_sem
cf_destroy_sem
cf_sem_post
cf_sem_try
cf_sem_value