From owner-cvs-src@FreeBSD.ORG Thu May 15 11:17:14 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A376537B401; Thu, 15 May 2003 11:17:14 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5728043FA3; Thu, 15 May 2003 11:17:14 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4FIHE0U057938; Thu, 15 May 2003 11:17:14 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4FIHEms057937; Thu, 15 May 2003 11:17:14 -0700 (PDT) Message-Id: <200305151817.h4FIHEms057937@repoman.freebsd.org> From: Mike Makonnen Date: Thu, 15 May 2003 11:17:14 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_cond.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 18:17:15 -0000 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