aboutsummaryrefslogtreecommitdiff
path: root/src/util/mutex.h
blob: 8c9a09799374e9c7b644555092608f3c4f6415f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef SYS_MUTEX_H
#define SYS_MUTEX_H

#define NULL_PID 0
#define SCHED_PID 1

struct Mutex {
	unsigned long* addr;
	unsigned long pid;
};

unsigned char lock_mutex(struct Mutex*, unsigned long);
unsigned char release_mutex(struct Mutex*, unsigned long);

#endif