Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2012 00:07:11 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233134 - head/lib/libthr/thread
Message-ID:  <201203190007.q2J07B5g041521@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203190007.q2J07B5g041521>