Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/waitq.c

    r63e27ef r9fe9d296  
    4444 */
    4545
    46 #include <assert.h>
    4746#include <synch/waitq.h>
    4847#include <synch/spinlock.h>
     
    204203                irq_spinlock_lock(&thread->lock, false);
    205204               
    206                 assert(thread->sleep_interruptible);
     205                ASSERT(thread->sleep_interruptible);
    207206               
    208207                if ((thread->timeout_pending) &&
     
    265264int waitq_sleep_timeout(waitq_t *wq, uint32_t usec, unsigned int flags)
    266265{
    267         assert((!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec)));
     266        ASSERT((!PREEMPTION_DISABLED) || (PARAM_NON_BLOCKING(flags, usec)));
    268267       
    269268        ipl_t ipl = waitq_sleep_prepare(wq);
     
    497496static void waitq_complete_wakeup(waitq_t *wq)
    498497{
    499         assert(interrupts_disabled());
     498        ASSERT(interrupts_disabled());
    500499       
    501500        irq_spinlock_lock(&wq->lock, false);
     
    521520        size_t count = 0;
    522521
    523         assert(interrupts_disabled());
    524         assert(irq_spinlock_locked(&wq->lock));
     522        ASSERT(interrupts_disabled());
     523        ASSERT(irq_spinlock_locked(&wq->lock));
    525524       
    526525loop:
Note: See TracChangeset for help on using the changeset viewer.