From owner-cvs-all@FreeBSD.ORG Tue Dec 30 00:34:58 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6231116A4CE; Tue, 30 Dec 2003 00:34:58 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DCB443D2D; Tue, 30 Dec 2003 00:34:57 -0800 (PST) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBU8Yv0B065341; Tue, 30 Dec 2003 00:34:57 -0800 (PST) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBU8YvnQ065340; Tue, 30 Dec 2003 00:34:57 -0800 (PST) (envelope-from mtm) Message-Id: <200312300834.hBU8YvnQ065340@repoman.freebsd.org> From: Mike Makonnen Date: Tue, 30 Dec 2003 00:34:57 -0800 (PST) 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_kern.c thr_mutex.c thr_private.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2003 08:34:58 -0000 mtm 2003/12/30 00:34:57 PST FreeBSD src repository Modified files: lib/libthr/thread thr_kern.c thr_mutex.c thr_private.h Log: Make it possible for the library to specify a timeout value when waiting on a locked mutex. This involves passing a struct timespec from the pthread mutex locking interfaces all the way down to the function that suspends the thread until the mutex is released. The timeout is assumed to be an absolute time (i.e. not relative to the current time). Also, in _thread_suspend() make the passed in timespec const. Revision Changes Path 1.16 +1 -1 src/lib/libthr/thread/thr_kern.c 1.19 +47 -20 src/lib/libthr/thread/thr_mutex.c 1.28 +1 -1 src/lib/libthr/thread/thr_private.h