31 wait_obj.type = WaiterType_Waitable;
32 wait_obj.waitable = &t->waitable;
User-mode timer object.
Definition: utimer.h:19
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
void utimerStart(UTimer *t)
Starts the timer.
void utimerCreate(UTimer *t, u64 interval, TimerType type)
Creates a user-mode timer.
static Waiter waiterForUTimer(UTimer *t)
Creates a waiter for a user-mode timer.
Definition: utimer.h:28
void utimerStop(UTimer *t)
Stops the timer.
TimerType
Valid types for a user-mode timer.
Definition: utimer.h:13
@ TimerType_OneShot
Timers of this kind fire once and then stop automatically.
Definition: utimer.h:14
@ TimerType_Repeating
Timers of this kind fire periodically.
Definition: utimer.h:15
User mode synchronization primitive waiting operations.