Subversion Repositories HelenOS-historic

Rev

Rev 1502 | Rev 1580 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1502 Rev 1579
Line 309... Line 309...
309
    /*
309
    /*
310
     * Now we are firmly decided to go to sleep.
310
     * Now we are firmly decided to go to sleep.
311
     */
311
     */
312
    spinlock_lock(&THREAD->lock);
312
    spinlock_lock(&THREAD->lock);
313
 
313
 
-
 
314
    if (THREAD->interrupted) {
-
 
315
        spinlock_unlock(&THREAD->lock);
-
 
316
        spinlock_unlock(&wq->lock);
-
 
317
        return ESYNCH_INTERRUPTED;
-
 
318
    }
-
 
319
 
314
    if (flags & SYNCH_FLAGS_INTERRUPTIBLE) {
320
    if (flags & SYNCH_FLAGS_INTERRUPTIBLE) {
315
        /*
321
        /*
316
         * Set context that will be restored if the sleep
322
         * Set context that will be restored if the sleep
317
         * of this thread is ever interrupted.
323
         * of this thread is ever interrupted.
318
         */
324
         */