mtm d8dec9f72f 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
..
2003-05-04 18:34:00 +00:00
2003-04-20 18:38:59 +00:00
2003-04-20 18:41:16 +00:00
2002-09-28 00:25:32 +00:00
2003-05-22 13:02:28 +00:00
2002-12-27 12:15:40 +00:00
2003-03-24 16:02:05 +00:00
2003-05-22 13:02:28 +00:00
2003-02-06 11:25:03 +00:00
2002-12-27 12:15:40 +00:00
2003-05-22 13:02:28 +00:00
2002-12-27 12:15:40 +00:00
2002-09-28 00:25:32 +00:00
2003-03-24 16:02:05 +00:00
2003-01-28 23:03:15 +00:00
2003-04-30 15:49:40 +00:00
2003-05-19 15:52:01 +00:00
2002-09-28 00:25:32 +00:00
2002-09-28 00:25:32 +00:00
2002-09-28 00:25:32 +00:00
2003-01-07 13:18:21 +00:00
2003-05-22 13:02:28 +00:00
2002-09-28 00:25:32 +00:00
2002-09-28 00:25:32 +00:00
2003-03-09 19:56:21 +00:00
2003-05-22 17:07:57 +00:00
2003-04-30 15:49:40 +00:00
2003-05-19 15:52:01 +00:00
2002-09-28 00:25:32 +00:00