Searched hist:115389 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11-stable/lib/libthr/thread/
H A Dthr_cond.cdiff 115389 Thu May 29 18:54:00 MDT 2003 mtm Use a static lock to ake sure pthread_cond_* functions called
from multiple threads don't initialze the same condition variable
more than once.

Explicitly compare cond pointers with PTHREAD_COND_INITIALIZER instead
of NULL. Just because it happens to be defined as NULL is no reason
to encourage the idea that people can call those functions with
NULL pointers to a condition variable.

Approved by: re/jhb

Completed in 74 milliseconds