aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/futex.h
blob: f4709a2674b5c97f8ea547bc8db42475b5fcbc86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <util/datetime/base.h>

namespace NYT::NThreading {

////////////////////////////////////////////////////////////////////////////////

#ifdef _linux_

int FutexWait(int* addr, int value, TDuration timeout = TDuration::Max());
int FutexWake(int* addr, int count);

#endif

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NThreading