summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_init.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-04-29 21:03:33 +0000
committerdeischen <deischen@FreeBSD.org>2003-04-29 21:03:33 +0000
commit6bd4376dc86f246ff07451d32eeeab0742747649 (patch)
tree91af310836f600ff861fcc771d66919156ee5215 /lib/libpthread/thread/thr_init.c
parenteeceed0838e543d6948276df87b878354ca10adb (diff)
downloadFreeBSD-src-6bd4376dc86f246ff07451d32eeeab0742747649.zip
FreeBSD-src-6bd4376dc86f246ff07451d32eeeab0742747649.tar.gz
Create the thread signal lock as a KSE lock (as opposed to
a thread lock). Better protect access to thread state while searching for threads to handle a signal. Better protect access to process pending signals while processing a thread in sigwait(). Submitted by: davidxu
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r--lib/libpthread/thread/thr_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c
index 804462c..d43adf5 100644
--- a/lib/libpthread/thread/thr_init.c
+++ b/lib/libpthread/thread/thr_init.c
@@ -499,7 +499,7 @@ init_private(void)
* process signal mask and pending signal sets.
*/
if (_lock_init(&_thread_signal_lock, LCK_ADAPTIVE,
- _thr_lock_wait, _thr_lock_wakeup) != 0)
+ _kse_lock_wait, _kse_lock_wakeup) != 0)
PANIC("Cannot initialize _thread_signal_lock");
if (_lock_init(&_mutex_static_lock, LCK_ADAPTIVE,
_thr_lock_wait, _thr_lock_wakeup) != 0)
OpenPOWER on IntegriCloud