Rev 1661 | Rev 1684 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1661 | Rev 1676 | ||
|---|---|---|---|
| Line 474... | Line 474... | ||
| 474 | } |
474 | } |
| 475 | spinlock_unlock(&thr->lock); |
475 | spinlock_unlock(&thr->lock); |
| 476 | thr = NULL; |
476 | thr = NULL; |
| 477 | } |
477 | } |
| 478 | spinlock_unlock(&TASK->lock); |
478 | spinlock_unlock(&TASK->lock); |
| - | 479 | interrupts_restore(ipl); |
|
| 479 | 480 | ||
| 480 | if (thr) { |
481 | if (thr) { |
| 481 | thread_join(thr); |
482 | thread_join(thr); |
| 482 | thread_detach(thr); |
483 | thread_detach(thr); |
| 483 | scheduler(); |
484 | scheduler(); |