summaryrefslogtreecommitdiff
path: root/src/user/lib/esemaphore.h
blob: 4a16c2eeb415bbcd55579e3aacf477c6eac6391c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#include <camellia/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);