Rev 1062 | Rev 1104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1062 | Rev 1086 | ||
---|---|---|---|
Line 350... | Line 350... | ||
350 | /* must be run after the switch to scheduler stack */ |
350 | /* must be run after the switch to scheduler stack */ |
351 | after_thread_ran(); |
351 | after_thread_ran(); |
352 | 352 | ||
353 | switch (THREAD->state) { |
353 | switch (THREAD->state) { |
354 | case Running: |
354 | case Running: |
355 | THREAD->state = Ready; |
- | |
356 | spinlock_unlock(&THREAD->lock); |
355 | spinlock_unlock(&THREAD->lock); |
357 | thread_ready(THREAD); |
356 | thread_ready(THREAD); |
358 | break; |
357 | break; |
359 | 358 | ||
360 | case Exiting: |
359 | case Exiting: |