From owner-svn-src-head@FreeBSD.ORG Mon Mar 19 00:07:11 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58CBE1065670; Mon, 19 Mar 2012 00:07:11 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 449F48FC0A; Mon, 19 Mar 2012 00:07:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2J07BJp041523; Mon, 19 Mar 2012 00:07:11 GMT (envelope-from davidxu@svn.freebsd.org) Received: (from davidxu@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2J07B5g041521; Mon, 19 Mar 2012 00:07:11 GMT (envelope-from davidxu@svn.freebsd.org) Message-Id: <201203190007.q2J07B5g041521@svn.freebsd.org> From: David Xu Date: Mon, 19 Mar 2012 00:07:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233134 - head/lib/libthr/thread X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 00:07:11 -0000 Author: davidxu Date: Mon Mar 19 00:07:10 2012 New Revision: 233134 URL: http://svn.freebsd.org/changeset/base/233134 Log: Use clockid parameter instead of hard-coded CLOCK_REALTIME. Reported by: pjd Modified: head/lib/libthr/thread/thr_umtx.c Modified: head/lib/libthr/thread/thr_umtx.c ============================================================================== --- head/lib/libthr/thread/thr_umtx.c Sun Mar 18 21:54:59 2012 (r233133) +++ head/lib/libthr/thread/thr_umtx.c Mon Mar 19 00:07:10 2012 (r233134) @@ -202,7 +202,7 @@ _thr_umtx_timedwait_uint(volatile u_int tm_p = NULL; tm_size = 0; } else { - timeout._clockid = CLOCK_REALTIME; + timeout._clockid = clockid; timeout._flags = UMTX_ABSTIME; timeout._timeout = *abstime; tm_p = &timeout;