aboutsummaryrefslogtreecommitdiff
path: root/include/util/lock.h
blob: 27f23c59e6fe7f45ed9f4713e3cf0bc04f29f3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef UTIL_LOCK_H
#define UTIL_LOCK_H

struct Lock {
	unsigned long pid;
} __attribute__((packed, aligned(4)));

struct Semaphore {
	unsigned long value;
} __attribute__((packed, aligned(4)));

void lock(struct Lock* l);
void unlock(struct Lock* l);

#endif