aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/util/futex.h
blob: 9f8a7b53bc462d6a37b274c49d0265392c417767 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once 
 
#ifdef _linux_ 
 
#include <linux/futex.h> 
#include <unistd.h> 
#include <sys/syscall.h> 
 
static long SysFutex(void* addr1, int op, int val1, struct timespec* timeout, void* addr2, int val3) { 
    return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); 
} 
 
#endif