diff options
author | mtm <mtm@FreeBSD.org> | 2003-05-29 20:54:00 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-05-29 20:54:00 +0000 |
commit | 238a1fc561ef47ef23d773be262045b7cdeb2be1 (patch) | |
tree | de07205d57a8993805508957d2cb6c1a62e1b61f /lib/libthr/thread/thr_mutex.c | |
parent | c9c9423632b4eeb62740ecfc805b6ef66cea77f9 (diff) | |
download | FreeBSD-src-238a1fc561ef47ef23d773be262045b7cdeb2be1.zip FreeBSD-src-238a1fc561ef47ef23d773be262045b7cdeb2be1.tar.gz |
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
Diffstat (limited to 'lib/libthr/thread/thr_mutex.c')
0 files changed, 0 insertions, 0 deletions