/kernel/trunk/generic/src/synch/waitq.c |
---|
311,6 → 311,12 |
*/ |
spinlock_lock(&THREAD->lock); |
if (THREAD->interrupted) { |
spinlock_unlock(&THREAD->lock); |
spinlock_unlock(&wq->lock); |
return ESYNCH_INTERRUPTED; |
} |
if (flags & SYNCH_FLAGS_INTERRUPTIBLE) { |
/* |
* Set context that will be restored if the sleep |