blob: ef81499d51dc479259964deac678bb0bbf90ca4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef _LOCK_H
#define _LOCK_H
struct spinlock {
int locked;
int tp;
};
void initlock(struct spinlock *);
void acquire(struct spinlock *);
void release(struct spinlock *);
#endif /* _LOCK_H */
|