Date: Tue, 13 Jul 2004 22:49:58 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libpthread/thread thr_exit.c thr_kern.c thr_priority_queue.c thr_private.h thr_spec.c Message-ID: <200407132249.i6DMnwNe079991@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407132249.i6DMnwNe079991>