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