summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-03-19 00:07:10 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-03-19 00:07:10 +0000
commit6cf6bbda47f7179440b7e1e8aa8a6a8fea6af1bf (patch)
treed395af0f685effb6ceeaaf2981307ed907551206 /lib/libthr
parent57c81ebaa2b19e352e9db80f4e4af9b12cc1fb1a (diff)
downloadFreeBSD-src-6cf6bbda47f7179440b7e1e8aa8a6a8fea6af1bf.zip
FreeBSD-src-6cf6bbda47f7179440b7e1e8aa8a6a8fea6af1bf.tar.gz
Use clockid parameter instead of hard-coded CLOCK_REALTIME.
Reported by: pjd
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_umtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c
index 3132880..a61dab0 100644
--- a/lib/libthr/thread/thr_umtx.c
+++ b/lib/libthr/thread/thr_umtx.c
@@ -202,7 +202,7 @@ _thr_umtx_timedwait_uint(volatile u_int *mtx, u_int id, int clockid,
tm_p = NULL;
tm_size = 0;
} else {
- timeout._clockid = CLOCK_REALTIME;
+ timeout._clockid = clockid;
timeout._flags = UMTX_ABSTIME;
timeout._timeout = *abstime;
tm_p = &timeout;
OpenPOWER on IntegriCloud