freebsd-dev/lib/libthr
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
..
arch Add two functions: _spinlock_pthread() and _spinunlock_pthread() 2003-05-23 23:39:31 +00:00
sys - Adjust the makefiles so we have a per architecture makefile. 2003-04-01 07:07:38 +00:00
thread Lock the cond queue (condition variables): 2003-05-24 01:02:16 +00:00
Makefile Make WARNS2 clean. The fixes mostly included: 2003-05-23 09:48:20 +00:00