diff options
| -rw-r--r-- | lib/libkse/thread/thr_kern.c | 1 | ||||
| -rw-r--r-- | lib/libpthread/thread/thr_kern.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index 5762219056f1..c26279edb35f 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/thread/thr_kern.c @@ -785,6 +785,7 @@ kse_sched_multi(struct kse *curkse) ; /* Nothing to do here. */ else if ((curthread->need_switchout == 0) && (curthread->blocked == 0) && (THR_IN_CRITICAL(curthread))) { + kse_wakeup_multi(curkse); /* * Resume the thread and tell it to yield when * it leaves the critical region. diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 5762219056f1..c26279edb35f 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -785,6 +785,7 @@ kse_sched_multi(struct kse *curkse) ; /* Nothing to do here. */ else if ((curthread->need_switchout == 0) && (curthread->blocked == 0) && (THR_IN_CRITICAL(curthread))) { + kse_wakeup_multi(curkse); /* * Resume the thread and tell it to yield when * it leaves the critical region. |
