Date: Sat, 20 Nov 2004 04:35:57 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 65513 for review Message-ID: <200411200435.iAK4ZvKX006210@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=65513 Change 65513 by davidxu@davidxu_alona on 2004/11/20 04:35:00 no kse lock. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sigaction.c#2 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_sigaction.c#2 (text+ko) ==== @@ -45,7 +45,6 @@ int err = 0; struct sigaction newact, oldact; struct pthread *curthread; - kse_critical_t crit; /* Check if the signal number is out of range: */ if (sig < 1 || sig > _SIG_MAXSIG) { @@ -56,9 +55,8 @@ if (act) newact = *act; - crit = _kse_critical_enter(); curthread = _get_curthread(); - KSE_LOCK_ACQUIRE(curthread->kse, &_thread_signal_lock); + THR_LOCK_ACQUIRE(curthread, &_thread_signal_lock); oldact = _thread_sigact[sig - 1]; @@ -96,8 +94,7 @@ ret = -1; } } - KSE_LOCK_RELEASE(curthread->kse, &_thread_signal_lock); - _kse_critical_leave(crit); + THR_LOCK_RELEASE(curthread, &_thread_signal_lock); /* * Check if the existing signal action structure contents are * to be returned:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411200435.iAK4ZvKX006210>