diff options
author | deischen <deischen@FreeBSD.org> | 2003-04-29 21:03:33 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-04-29 21:03:33 +0000 |
commit | 6bd4376dc86f246ff07451d32eeeab0742747649 (patch) | |
tree | 91af310836f600ff861fcc771d66919156ee5215 /lib/libpthread/thread/thr_init.c | |
parent | eeceed0838e543d6948276df87b878354ca10adb (diff) | |
download | FreeBSD-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.c | 2 |
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) |