From 27d8bc7cad4a8f68c2da3efbb77f45ec70ae40e6 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 05 一月 2022 14:11:39 +0800 Subject: [PATCH] pb.go MsgQueryProcReply add subLocalTopics and subNetTopics --- src/futex_sem.cpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/futex_sem.cpp b/src/futex_sem.cpp index 226145f..8a0fd33 100644 --- a/src/futex_sem.cpp +++ b/src/futex_sem.cpp @@ -1,8 +1,10 @@ #include "futex_sem.h" - +#include "time_util.h" int futex(int *uaddr, int futex_op, int val, const struct timespec *timeout, int *uaddr2, int val3) { - return syscall(SYS_futex, uaddr, futex_op, val, timeout, uaddr, val3); + + const struct timespec ts = TimeUtil::trim_time(timeout); + return syscall(SYS_futex, uaddr, futex_op, val, &ts, uaddr, val3); } \ No newline at end of file -- Gitblit v1.8.0