freebsd-dev/lib/libthr/thread
David Xu ada33a6e36 Change atfork lock from mutex to rwlock, also make mutexes used by malloc()
module private type, when private type mutex is locked/unlocked, thread
critical region is entered or leaved. These changes makes fork()
async-signal safe which required by POSIX. Note that user's atfork handler
still needs to be async-signal safe, but it is not problem of libthr, it
is user's responsiblity.
2010-09-01 03:11:21 +00:00
..
Makefile.inc remove file thr_sem_new.c. 2010-01-05 07:50:31 +00:00
thr_affinity.c Avoid various shadowed variables. libthr is now almost WARNS=4 clean except 2008-04-23 21:06:51 +00:00
thr_attr.c Avoid various shadowed variables. libthr is now almost WARNS=4 clean except 2008-04-23 21:06:51 +00:00
thr_autoinit.c
thr_barrier.c
thr_barrierattr.c
thr_cancel.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_clean.c Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros, 2008-06-09 01:14:10 +00:00
thr_concurrency.c
thr_cond.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_condattr.c Coalesce one more broken line. 2010-05-24 13:44:39 +00:00
thr_create.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_detach.c
thr_equal.c
thr_event.c Allow psaddr_t to be widened by using thr_pread_{int,long,ptr}, 2008-09-14 16:07:21 +00:00
thr_exit.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_fork.c Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_getcpuclockid.c Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu 2008-03-22 09:59:20 +00:00
thr_getprio.c
thr_getschedparam.c
thr_info.c
thr_init.c Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_join.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_kern.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_kill.c
thr_list.c
thr_main_np.c
thr_multi_np.c
thr_mutex.c Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_mutexattr.c pthread_mutexattr_destroy() was accidentally broken in last revision, 2008-03-20 11:47:08 +00:00
thr_once.c Eliminate global mutex by using pthread_once's state field as 2008-05-30 00:02:59 +00:00
thr_printf.c
thr_private.h Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_pspinlock.c
thr_resume_np.c Use UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to save 2008-04-29 03:58:18 +00:00
thr_rtld.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_rwlock.c In the current code, rdlock_count is not correctly handled for some cases. 2009-07-06 09:31:04 +00:00
thr_rwlockattr.c
thr_self.c
thr_sem.c Use umtx to implement process sharable semaphore, to make this work, 2010-01-05 02:37:59 +00:00
thr_setprio.c
thr_setschedparam.c
thr_sig.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_single_np.c
thr_spec.c Unregister thread specific data destructor when a corresponding dso 2010-08-27 05:20:22 +00:00
thr_spinlock.c Avoid various shadowed variables. libthr is now almost WARNS=4 clean except 2008-04-23 21:06:51 +00:00
thr_stack.c
thr_suspend_np.c Use UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to save 2008-04-29 03:58:18 +00:00
thr_switch_np.c
thr_symbols.c
thr_syscalls.c Add signal handler wrapper, the reason to add it becauses there are 2010-09-01 02:18:33 +00:00
thr_umtx.c Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_umtx.h Change atfork lock from mutex to rwlock, also make mutexes used by malloc() 2010-09-01 03:11:21 +00:00
thr_yield.c