![]() |
STASIS
A pipeline delivery generator
|

Functions | |
| void | semaphore_handle_exit () |
| int | semaphore_init (struct Semaphore *s, const char *name, const int value) |
| int | semaphore_wait (struct Semaphore *s) |
| int | semaphore_post (struct Semaphore *s) |
| void | semaphore_destroy (struct Semaphore *s) |
Variables | |
| struct Semaphore * | semaphores [1000] = {0} |
| bool | semaphore_handle_exit_ready = false |
| int semaphore_init | ( | struct Semaphore * | s, |
| const char * | name, | ||
| int | value ) |
Initialize a cross-platform semaphore (Linux/Darwin)
| s | a pointer to Semaphore |
| name | of the semaphore |
| value | initial value of the semaphore |