Changes in kernel/generic/src/synch/waitq.c [63e27ef:9fe9d296] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/waitq.c
r63e27ef r9fe9d296 44 44 */ 45 45 46 #include <assert.h>47 46 #include <synch/waitq.h> 48 47 #include <synch/spinlock.h> … … 204 203 irq_spinlock_lock(&thread->lock, false); 205 204 206 assert(thread->sleep_interruptible);205 ASSERT(thread->sleep_interruptible); 207 206 208 207 if ((thread->timeout_pending) && … … 265 264 int waitq_sleep_timeout(waitq_t *wq, uint32_t usec, unsigned int flags) 266 265 { 267 assert((!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec)));266 ASSERT((!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec))); 268 267 269 268 ipl_t ipl = waitq_sleep_prepare(wq); … … 497 496 static void waitq_complete_wakeup(waitq_t *wq) 498 497 { 499 assert(interrupts_disabled());498 ASSERT(interrupts_disabled()); 500 499 501 500 irq_spinlock_lock(&wq->lock, false); … … 521 520 size_t count = 0; 522 521 523 assert(interrupts_disabled());524 assert(irq_spinlock_locked(&wq->lock));522 ASSERT(interrupts_disabled()); 523 ASSERT(irq_spinlock_locked(&wq->lock)); 525 524 526 525 loop:
Note:
See TracChangeset
for help on using the changeset viewer.