Searched hist:115277 (Results 1 - 1 of 1) sorted by relevance
/freebsd-10.2-release/lib/libthr/thread/ | ||
H A D | thr_cond.c | diff 115277 Sat May 24 01:02:16 MDT 2003 mtm 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 |
Completed in 89 milliseconds