Commit 68a785e6 authored by Jeremy Huddleston Sequoia's avatar Jeremy Huddleston Sequoia Committed by Marge Bot
Browse files

Fall back on clock_gettime when timespec_get() is unavailable

Fixes: e3a8013d "util/u_queue: add util_queue_fence_wait_timeout"
Closes: #1020
Closes: #4088

Signed-off-by: Jeremy Huddleston Sequoia's avatarJeremy Huddleston Sequoia <>
Signed-off-by: Yurii Kolesnykov's avatarYurii Kolesnykov <>
Part-of: <!8482>
parent 81becaa6
Pipeline #256803 waiting for manual action with stages
......@@ -183,7 +183,11 @@ _util_queue_fence_wait_timeout(struct util_queue_fence *fence,
if (rel > 0) {
struct timespec ts;
timespec_get(&ts, TIME_UTC);
clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_sec += abs_timeout / (1000*1000*1000);
ts.tv_nsec += abs_timeout % (1000*1000*1000);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment