diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-07-13 22:49:58 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-07-13 22:49:58 +0000 |
commit | 2e3100b5472a1681f180c58f1b10e6af461d6176 (patch) | |
tree | fb610eb65d694e498ffb6de577dfc89b9d9f9f4e /lib/libpthread/thread/thr_init.c | |
parent | 512283ce25f97070fe9a81cb0695d87c31622254 (diff) | |
download | FreeBSD-src-2e3100b5472a1681f180c58f1b10e6af461d6176.zip FreeBSD-src-2e3100b5472a1681f180c58f1b10e6af461d6176.tar.gz |
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.
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
0 files changed, 0 insertions, 0 deletions