Rev 2089 | Rev 2109 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2089 | Rev 2106 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | * |
50 | * |
51 | * Must be acquired before T.lock for each T of type thread_t. |
51 | * Must be acquired before T.lock for each T of type thread_t. |
52 | */ |
52 | */ |
53 | SPINLOCK_DECLARE(lock); |
53 | SPINLOCK_DECLARE(lock); |
54 | 54 | ||
- | 55 | /** |
|
55 | int missed_wakeups; /**< Number of waitq_wakeup() calls that didn't find a thread to wake up. */ |
56 | * Number of waitq_wakeup() calls that didn't find a thread to wake up. |
- | 57 | */ |
|
- | 58 | int missed_wakeups; |
|
56 | link_t head; /**< List of sleeping threads for wich there was no missed_wakeup. */ |
59 | /** List of sleeping threads for wich there was no missed_wakeup. */ |
- | 60 | link_t head; |
|
57 | } waitq_t; |
61 | } waitq_t; |
58 | 62 | ||
59 | #define waitq_sleep(wq) \ |
63 | #define waitq_sleep(wq) \ |
60 | waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) |
64 | waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) |
61 | 65 |