Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1578 → Rev 1579

/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