cvs commit: src/lib/libthr/arch/i386/i386 _setcurthread.c
src/lib/libthr/thread thr_private.h thr_spinlock.c
Mike Makonnen
mtm at FreeBSD.org
Fri May 23 16:39:32 PDT 2003
mtm 2003/05/23 16:39:31 PDT
FreeBSD src repository
Modified files:
lib/libthr/arch/i386/i386 _setcurthread.c
lib/libthr/thread thr_private.h thr_spinlock.c
Log:
Add two functions: _spinlock_pthread() and _spinunlock_pthread()
that take the address of a struct pthread as their first argument.
_spin[un]lock() just become wrappers arround these two functions.
These new functions are for use in situations where curthread can't be
used. One example is _thread_retire(), where we invalidate the array index
curthread uses to get its pointer..
Approved by: re/blanket libthr
Revision Changes Path
1.7 +4 -2 src/lib/libthr/arch/i386/i386/_setcurthread.c
1.9 +2 -0 src/lib/libthr/thread/thr_private.h
1.3 +14 -2 src/lib/libthr/thread/thr_spinlock.c
More information about the cvs-all
mailing list