freebsd-dev/lib/libthr/thread
mtm 02051dbacb Lock the cond queue (condition variables):
Access to the thread's flags and state is protected by
_thread_critical_enter/exit(). When a thread is signaled with a condition
its state must be protected by locking it and disabling
signals before it is taken of the waiters' queue.

Move the implementation of pthread_cond_signal() and pthread_cond_broadcast()
into one function, cond_signal(). Its behaviour is determined by the
last argument, int broadcast. If this is set to 1 it will remove all
waiters, otherwise it will wake up only the first waiter thread.

Remove an extraneous call to pthread_testcancel().

Approved by:	re/blanket libthr
2003-05-24 01:02:16 +00:00
..
Makefile.inc Add stub implementations of pthread_[gs]etconcurrency to libc_r and 2003-04-20 01:53:13 +00:00
thr_attr.c
thr_autoinit.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_cancel.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_clean.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_concurrency.c Add stub implementations of pthread_[gs]etconcurrency to libc_r and 2003-04-20 01:53:13 +00:00
thr_cond.c Lock the cond queue (condition variables): 2003-05-24 01:02:16 +00:00
thr_condattr_destroy.c
thr_condattr_init.c
thr_create.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_detach.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_equal.c
thr_exit.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_find_thread.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_gc.c Fix build breakage (on ia64) caused by a missing file descriptor to 2003-04-20 02:56:12 +00:00
thr_getprio.c
thr_getschedparam.c
thr_info.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_init.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_join.c Move a misplaced comment. 2003-05-20 18:48:41 +00:00
thr_kern.c EDOOFUS 2003-05-23 10:28:13 +00:00
thr_main_np.c
thr_mattr_init.c
thr_mattr_kind_np.c
thr_multi_np.c
thr_mutex_prioceiling.c - Reenable setschedparam and the prioceiling code now that the mutex code 2003-04-01 22:40:29 +00:00
thr_mutex_protocol.c
thr_mutex.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_mutexattr_destroy.c
thr_once.c
thr_printf.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_private.h Add two functions: _spinlock_pthread() and _spinunlock_pthread() 2003-05-23 23:39:31 +00:00
thr_resume_np.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_rwlock.c
thr_rwlockattr.c
thr_self.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_sem.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_seterrno.c
thr_setprio.c
thr_setschedparam.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_sig.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_spec.c - Define curthread as _get_curthread() and remove all direct calls to 2003-04-02 03:05:39 +00:00
thr_spinlock.c Add two functions: _spinlock_pthread() and _spinunlock_pthread() 2003-05-23 23:39:31 +00:00
thr_stack.c
thr_suspend_np.c
thr_syscalls.c Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00
thr_yield.c