23 wait_obj.type = t->
autoclear ? WaiterType_HandleWithClear : WaiterType_Handle;
24 wait_obj.handle = t->
revent;
Result eventFire(Event *t)
Signals a kernel-mode event.
void eventClose(Event *t)
Closes a kernel-mode event.
Result eventCreate(Event *t, bool autoclear)
Creates a kernel-mode event.
Result eventClear(Event *t)
Clears a kernel-mode event.
void eventLoadRemote(Event *t, Handle handle, bool autoclear)
Loads a kernel-mode event obtained from IPC.
Result eventWait(Event *t, u64 timeout)
Waits on a kernel-mode event.
static Waiter waiterForEvent(Event *t)
Creates a Waiter for a kernel-mode event.
Definition: event.h:20
static bool eventActive(Event *t)
Returns whether an Event is initialized.
Definition: event.h:56
Kernel-mode event structure.
Definition: event.h:13
Handle wevent
Write-only event handle.
Definition: event.h:15
bool autoclear
Autoclear flag.
Definition: event.h:16
Handle revent
Read-only event handle.
Definition: event.h:14
Waiter structure, representing any generic waitable synchronization object; both kernel-mode and user...
Definition: wait.h:36
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
#define INVALID_HANDLE
Invalid handle.
Definition: types.h:96
u32 Handle
Kernel object handle.
Definition: types.h:43
u32 Result
Function error code result type.
Definition: types.h:44
User mode synchronization primitive waiting operations.