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

Mike Makonnen mtm at FreeBSD.org
Thu May 15 11:17:15 PDT 2003


mtm         2003/05/15 11:17:14 PDT

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_cond.c 
  Log:
  Do some cleanup with respect to condition variables. The implementation
  of pthread_cond_timedwait() is moved into cond_wait_common().
  Pthread_cond_wait() and pthread_cond_timedwait() are now wrappers around
  this function. Previously, the former called the latter with the abstime
  pointing to 0 time. This violated Posix semantics should an application
  have reason to call it with that argument because instead or returning
  immediately it would have waited indefinitely for the cv to be signaled.
  
  Approved by:    markm/mentor, re/blanket libthr
  Reviewed by:    jeff
  
  Revision  Changes    Path
  1.4       +14 -15    src/lib/libthr/thread/thr_cond.c


More information about the cvs-src mailing list