25 le->counter = signaled ? 2 : 0;
26 le->autoclear = autoclear;
void leventClear(LEvent *le)
Clears a user-mode light event.
static void leventInit(LEvent *le, bool signaled, bool autoclear)
Initializes a user-mode light event.
Definition: levent.h:24
bool leventWait(LEvent *le, u64 timeout_ns)
Waits on a user-mode light event.
void leventSignal(LEvent *le)
Signals a user-mode light event.
bool leventTryWait(LEvent *le)
Polls a user-mode light event.
User-mode light event structure.
Definition: levent.h:13
Wrappers for kernel syscalls.
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition: types.h:92
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21