diff options
Diffstat (limited to 'src/user/lib/include/esemaphore.h')
-rw-r--r-- | src/user/lib/include/esemaphore.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/user/lib/include/esemaphore.h b/src/user/lib/include/esemaphore.h new file mode 100644 index 0000000..9cc85e0 --- /dev/null +++ b/src/user/lib/include/esemaphore.h @@ -0,0 +1,12 @@ +#pragma once +#include <camellia/types.h> + +struct evil_sem { + hid_t wait, signal; +}; + +void esem_signal(struct evil_sem *sem); +void esem_wait(struct evil_sem *sem); + +struct evil_sem *esem_new(int value); +void esem_free(struct evil_sem *sem); |