cvs commit: src/lib/libpthread/thread thr_exit.c thr_kern.c
thr_priority_queue.c thr_private.h thr_spec.c
David Xu
davidxu at FreeBSD.org
Tue Jul 13 15:49:59 PDT 2004
davidxu 2004-07-13 22:49:58 UTC
FreeBSD src repository
Modified files:
lib/libpthread/thread thr_exit.c thr_kern.c
thr_priority_queue.c thr_private.h
thr_spec.c
Log:
Add code to support thread debugging.
1. Add global varible _libkse_debug, debugger uses the varible to identify
libpthread. when the varible is written to non-zero by debugger, libpthread
will take some special action at context switch time, it will check
TMDF_DOTRUNUSER flags, if a thread has the flags set by debugger, it won't
be scheduled, when a thread leaves KSE critical region, thread checks
the flag, if it was set, the thread relinquish CPU.
2. Add pq_first_debug to select a thread allowd to run by debugger.
3. Some names prefixed with _thr are renamed to _thread prefix.
which is allowed to run by debugger.
Revision Changes Path
1.36 +3 -3 src/lib/libpthread/thread/thr_exit.c
1.107 +54 -8 src/lib/libpthread/thread/thr_kern.c
1.15 +51 -0 src/lib/libpthread/thread/thr_priority_queue.c
1.115 +24 -12 src/lib/libpthread/thread/thr_private.h
1.22 +14 -21 src/lib/libpthread/thread/thr_spec.c
More information about the cvs-all
mailing list