Subversion Repositories HelenOS-historic

Rev

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

Rev 1580 Rev 1593
Line 146... Line 146...
146
        if (!spinlock_trylock(&wq->lock)) {
146
        if (!spinlock_trylock(&wq->lock)) {
147
            spinlock_unlock(&t->lock);
147
            spinlock_unlock(&t->lock);
148
            goto grab_locks;    /* avoid deadlock */
148
            goto grab_locks;    /* avoid deadlock */
149
        }
149
        }
150
 
150
 
-
 
151
        if (t->timeout_pending && timeout_unregister(&t->sleep_timeout))
-
 
152
            t->timeout_pending = false;
-
 
153
 
151
        list_remove(&t->wq_link);
154
        list_remove(&t->wq_link);
152
        t->saved_context = t->sleep_interruption_context;
155
        t->saved_context = t->sleep_interruption_context;
153
        do_wakeup = true;
156
        do_wakeup = true;
154
       
157
       
155
        spinlock_unlock(&wq->lock);
158
        spinlock_unlock(&wq->lock);