aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/util/futex.h
blob: c193f8d1280f24278a79d5130aedec62893e436f (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