/SPARTAN/trunk/include/synch/semaphore.h |
---|
36,7 → 36,7 |
struct semaphore |
{ |
waitq_t wq; |
waitq_t wq; |
}; |
#define semaphore_down(s) \ |
/SPARTAN/trunk/include/synch/waitq.h |
---|
39,9 → 39,9 |
#define WAKEUP_ALL 1 |
struct waitq { |
spinlock_t lock; |
int missed_wakeups; |
link_t head; |
spinlock_t lock; |
int missed_wakeups; |
link_t head; |
}; |
#define waitq_sleep(wq) \ |