Date: Thu, 15 May 2003 11:17:14 -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: <200305151817.h4FIHEms057937@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305151817.h4FIHEms057937>
