From 2e79a2e5af3affa7a6a3becdffb1c91d89af90af Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 11 Jul 2022 21:54:51 +0200 Subject: user: reorganize the userland sources --- src/user/lib/esemaphore.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/user/lib/esemaphore.h (limited to 'src/user/lib/esemaphore.h') diff --git a/src/user/lib/esemaphore.h b/src/user/lib/esemaphore.h new file mode 100644 index 0000000..e746bd7 --- /dev/null +++ b/src/user/lib/esemaphore.h @@ -0,0 +1,12 @@ +#pragma once +#include + +struct evil_sem { + handle_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); -- cgit v1.2.3