diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-04-30 01:15:21 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-04-30 01:15:21 +0000 |
| commit | d1021be03f106a7a5b074c65303f6607eb6671c9 (patch) | |
| tree | d580a930d2e600eb6c4e99c70adc1f2634a169e0 /lib/libpthread/thread/thr_kern.c | |
| parent | 30a2952c90e63482cff3fd46ef44922c124e2c26 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
| -rw-r--r-- | lib/libpthread/thread/thr_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index c26279edb35f..a153a4d7e737 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -785,7 +785,6 @@ 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. @@ -798,6 +797,7 @@ kse_sched_multi(struct kse *curkse) curthread->kse = curkse; DBG_MSG("Continuing thread %p in critical region\n", curthread); + kse_wakeup_multi(curkse); if (curthread->lock_switch) { KSE_SCHED_LOCK(curkse, curkse->k_kseg); ret = _thread_switch(&curthread->tmbx, 0); |
