Rev 534 | Rev 557 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 552 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | * |
44 | * |
45 | * @param wq Pointer to wait queue to be initialized. |
45 | * @param wq Pointer to wait queue to be initialized. |
46 | */ |
46 | */ |
47 | void waitq_initialize(waitq_t *wq) |
47 | void waitq_initialize(waitq_t *wq) |
48 | { |
48 | { |
49 | spinlock_initialize(&wq->lock); |
49 | spinlock_initialize(&wq->lock, "waitq_lock"); |
50 | list_initialize(&wq->head); |
50 | list_initialize(&wq->head); |
51 | wq->missed_wakeups = 0; |
51 | wq->missed_wakeups = 0; |
52 | } |
52 | } |
53 | 53 | ||
54 | /** Handle timeout during waitq_sleep_timeout() call |
54 | /** Handle timeout during waitq_sleep_timeout() call |