aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/threading/futex.h
blob: 5c128461ca578b2be5b80beb480a818cff317a1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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