Date: Thu, 29 May 2003 13:54:01 -0700 (PDT) From: Mike Makonnen <mtm@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libthr/thread thr_cond.c Message-ID: <200305292054.h4TKs1ic060923@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mtm 2003/05/29 13:54:01 PDT
FreeBSD src repository
Modified files:
lib/libthr/thread thr_cond.c
Log:
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
Revision Changes Path
1.7 +20 -2 src/lib/libthr/thread/thr_cond.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305292054.h4TKs1ic060923>
