memgraph/include/utils/sys.hpp
2016-08-10 09:39:02 +01:00

18 lines
321 B
C++

#pragma once
#include <sys/syscall.h>
#include <linux/futex.h>
#include <unistd.h>
#include <sys/time.h>
namespace sys
{
inline int futex(void* addr1, int op, int val1, const struct timespec* timeout,
void* addr2, int val3)
{
return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
}
}