xv6-cs450/spinlock.h
rtm 664324745e cvs add spinlock.h
fix race in schedule()
2006-07-12 09:10:25 +00:00

7 lines
97 B
C

struct spinlock {
unsigned int locked;
struct proc *p;
int count;
unsigned locker_pc;
};