Rev 557 | Rev 788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 557 | Rev 623 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | 43 | ||
44 | /** Lock protecting wait queue structure. |
44 | /** Lock protecting wait queue structure. |
45 | * |
45 | * |
46 | * Must be acquired before T.lock for each T of type thread_t. |
46 | * Must be acquired before T.lock for each T of type thread_t. |
47 | */ |
47 | */ |
48 | spinlock_t lock; |
48 | SPINLOCK_DECLARE(lock); |
49 | 49 | ||
50 | int missed_wakeups; /**< Number of waitq_wakeup() calls that didn't find a thread to wake up. */ |
50 | int missed_wakeups; /**< Number of waitq_wakeup() calls that didn't find a thread to wake up. */ |
51 | link_t head; /**< List of sleeping threads for wich there was no missed_wakeup. */ |
51 | link_t head; /**< List of sleeping threads for wich there was no missed_wakeup. */ |
52 | }; |
52 | }; |
53 | 53 |