wangzhengquan
2021-01-29 b9b8088b1f5e7ca29d108f1c87b75855d6735d1e
1
2
3
4
5
6
7
8
9
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)
{
 
    const struct timespec ts = TimeUtil::trim_time(timeout);
  return syscall(SYS_futex, uaddr, futex_op, val, &ts, uaddr, val3);
}