cvs commit: src/lib/libthr/thread thr_cond.c

Mike Makonnen mtm at FreeBSD.org
Thu May 29 13:54:02 PDT 2003


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


More information about the cvs-src mailing list