libclod
C library for interacting with NBTs, region files, LOD data and other things.
Loading...
Searching...
No Matches
futex.h
Go to the documentation of this file.
1
8#ifndef LIBCLOD_FUTEX_H
9#define LIBCLOD_FUTEX_H
10
11#include <clod/lib.h>
12
21
22CLOD_API CLOD_NONNULL(1)
24clod_futex_wait(const int *ptr, int expected, int64_t timeout_us);
25
26CLOD_API CLOD_NONNULL(1)
28clod_futex_wake_one(const int *ptr);
29
30CLOD_API CLOD_NONNULL(1)
32clod_futex_wake_all(const int *ptr);
33
34#endif
clod_futex_error
Definition futex.h:13
@ CLOD_FUTEX_OK
No worries.
Definition futex.h:15
@ CLOD_FUTEX_INVALID
Invalid usage i.e. argument, pointer.
Definition futex.h:17
@ CLOD_FUTEX_INTERRUPT
The operation was interrupted by a signal.
Definition futex.h:19