freebsd-dev/lib/libkse/thread
David Xu 566382df0a 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.
2004-07-13 22:49:58 +00:00
..
Makefile.inc Implement sigaltstack() as per-threaded. Current only scope process thread 2003-12-29 23:21:09 +00:00
thr_accept.c accept() returns a file descriptor when it succeeds which is very 2003-12-09 23:40:27 +00:00
thr_aio_suspend.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_atfork.c
thr_attr_destroy.c
thr_attr_get_np.c
thr_attr_getdetachstate.c
thr_attr_getguardsize.c
thr_attr_getinheritsched.c
thr_attr_getschedparam.c
thr_attr_getschedpolicy.c
thr_attr_getscope.c
thr_attr_getstack.c
thr_attr_getstackaddr.c
thr_attr_getstacksize.c
thr_attr_init.c
thr_attr_setcreatesuspend_np.c
thr_attr_setdetachstate.c
thr_attr_setguardsize.c
thr_attr_setinheritsched.c
thr_attr_setschedparam.c
thr_attr_setschedpolicy.c
thr_attr_setscope.c
thr_attr_setstack.c
thr_attr_setstackaddr.c
thr_attr_setstacksize.c
thr_autoinit.c
thr_barrier.c
thr_barrierattr.c
thr_cancel.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_clean.c
thr_close.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_concurrency.c Fixed a misspelling of 0 as NULL. 2004-03-14 05:27:26 +00:00
thr_cond.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_condattr_destroy.c
thr_condattr_init.c
thr_connect.c accept() returns a file descriptor when it succeeds which is very 2003-12-09 23:40:27 +00:00
thr_creat.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_create.c Check pending signals, if there is signal will be unblocked by 2004-06-12 07:40:01 +00:00
thr_detach.c
thr_equal.c
thr_exit.c Add code to support thread debugging. 2004-07-13 22:49:58 +00:00
thr_fcntl.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_find_thread.c
thr_fork.c
thr_fsync.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_getprio.c
thr_getschedparam.c
thr_info.c
thr_init.c
thr_join.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_kern.c Add code to support thread debugging. 2004-07-13 22:49:58 +00:00
thr_kill.c
thr_main_np.c
thr_mattr_init.c
thr_mattr_kind_np.c
thr_msync.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_multi_np.c
thr_mutex_prioceiling.c
thr_mutex_protocol.c
thr_mutex.c Return EPERM if mutex owner is not current thread but it tries to 2004-01-17 03:09:57 +00:00
thr_mutexattr_destroy.c
thr_nanosleep.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_once.c
thr_open.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_pause.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_poll.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_printf.c style cleanup: Remove duplicate $FreeBSD$ tags. 2004-02-10 20:42:33 +00:00
thr_priority_queue.c Add code to support thread debugging. 2004-07-13 22:49:58 +00:00
thr_private.h Add code to support thread debugging. 2004-07-13 22:49:58 +00:00
thr_pselect.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_pspinlock.c
thr_raise.c
thr_read.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_readv.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_resume_np.c
thr_rtld.c
thr_rwlock.c Add a simple work-around for deadlocking on recursive read locks 2004-01-08 15:37:09 +00:00
thr_rwlockattr.c
thr_select.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_self.c
thr_sem.c Add cancellation point to sem_wait() and sem_timedwait() for pshared 2004-02-06 15:20:56 +00:00
thr_seterrno.c
thr_setprio.c
thr_setschedparam.c
thr_sig.c Check pending signals, if there is signal will be unblocked by 2004-06-12 07:40:01 +00:00
thr_sigaction.c
thr_sigaltstack.c Return error code in errno, not in return value. 2004-01-02 00:38:42 +00:00
thr_sigmask.c
thr_sigpending.c
thr_sigprocmask.c
thr_sigsuspend.c Check pending signals, if there is signal will be unblocked by 2004-06-12 07:40:01 +00:00
thr_sigwait.c Fix a POSIX conformance bug. POSIX says sigwait should return error number 2004-03-17 02:12:19 +00:00
thr_single_np.c
thr_sleep.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_spec.c Add code to support thread debugging. 2004-07-13 22:49:58 +00:00
thr_spinlock.c Use mutex instead of low level thread lock to implement spinlock, this 2003-12-09 02:37:40 +00:00
thr_stack.c
thr_suspend_np.c
thr_switch_np.c
thr_system.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_tcdrain.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_vfork.c
thr_wait4.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_wait.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_waitpid.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_write.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_writev.c Rename _thr_enter_cancellation_point to _thr_cancel_enter, rename 2003-12-09 02:20:56 +00:00
thr_yield.c