diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-23 14:59:54 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-12-23 15:04:02 +0100 |
commit | 4133b7f7992a38b19d5bfe47591e932e92d958e8 (patch) | |
tree | 883ee7f02a0087712c76ec6697453f5b523e69d7 /kern/machine.c | |
parent | 7aa475db4ce168401167dc2ffed6221493ae2db4 (diff) |
Make thread_suspend wait for !TH_UNINT
0a55db5 made thread_suspend return KERN_FAILURE when the target thread is in
TH_UNINT state. That however is not currently handled by libc, and it's more
useful to just wait for the thread to get interruptible.
* kern/sched_prim.c (thread_invoke): Wake NEW_THREAD->STATE for thread_suspend.
* kern/thread.c (thread_suspend): Wait on NEW_THREAD->STATE as long as THREAD
has TH_UNINT.
Diffstat (limited to 'kern/machine.c')
0 files changed, 0 insertions, 0 deletions