diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-29 21:03:33 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-29 21:03:33 +0000 |
| commit | 6cc13fa9ad7670cb94c89c6f4160fd55840a5a08 (patch) | |
| tree | 91af310836f600ff861fcc771d66919156ee5215 /lib/libpthread/thread/thr_sig.c | |
| parent | 635d81b2c61262055133d5dd1d44b49d08ab44a6 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index 5ac4998a8e0f..cd699db09df9 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_sig.c @@ -286,11 +286,10 @@ thr_sig_find(struct kse *curkse, int sig, siginfo_t *info) KSE_LOCK_ACQUIRE(curkse, &_thread_list_lock); TAILQ_FOREACH(pthread, &_thread_list, tle) { + /* Take the scheduling lock. */ + KSE_SCHED_LOCK(curkse, pthread->kseg); if ((pthread->state == PS_SIGWAIT) && sigismember(pthread->data.sigwait, sig)) { - /* Take the scheduling lock. */ - KSE_SCHED_LOCK(curkse, pthread->kseg); - /* * Return the signal number and make the * thread runnable. @@ -328,6 +327,7 @@ thr_sig_find(struct kse *curkse, int sig, siginfo_t *info) } else if (signaled_thread == NULL) signaled_thread = pthread; } + KSE_SCHED_UNLOCK(curkse, pthread->kseg); } KSE_LOCK_RELEASE(curkse, &_thread_list_lock); |
