summaryrefslogtreecommitdiff
path: root/src/user/lib/esemaphore.h
blob: e746bd7a1eb81cdbb4a9388542a4af3ada59cf4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#include <shared/types.h>

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);