Initial Upload
This commit is contained in:
10
sleeplock.h
Normal file
10
sleeplock.h
Normal file
@ -0,0 +1,10 @@
|
||||
// Long-term locks for processes
|
||||
struct sleeplock {
|
||||
uint locked; // Is the lock held?
|
||||
struct spinlock lk; // spinlock protecting this sleep lock
|
||||
|
||||
// For debugging:
|
||||
char *name; // Name of lock.
|
||||
int pid; // Process holding lock
|
||||
};
|
||||
|
Reference in New Issue
Block a user