PERFORCE change 65513 for review
David Xu
davidxu at FreeBSD.org
Fri Nov 19 20:35:59 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=65513
Change 65513 by davidxu at 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:
More information about the p4-projects
mailing list