diff options
author | David Xu <davidxu@FreeBSD.org> | 2012-03-19 00:07:10 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2012-03-19 00:07:10 +0000 |
commit | 81cd726a9553b030712e3b5b876e383546d6c588 (patch) | |
tree | d395af0f685effb6ceeaaf2981307ed907551206 /lib/libthr | |
parent | bca1cc1fd2509681cacacbf8f867265a4e0da8ef (diff) | |
download | src-81cd726a9553b030712e3b5b876e383546d6c588.tar.gz src-81cd726a9553b030712e3b5b876e383546d6c588.zip |
Use clockid parameter instead of hard-coded CLOCK_REALTIME.
Reported by: pjd
Notes
Notes:
svn path=/head/; revision=233134
Diffstat (limited to 'lib/libthr')
-rw-r--r-- | lib/libthr/thread/thr_umtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c index 313288014e71..a61dab023f52 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; |