EventDriverTimers

Undocumented in source.

Members

Functions

addRef
void addRef(TimerID descriptor)

Increments the reference count of the given resource.

cancelWait
void cancelWait(TimerID timer)
Undocumented in source.
create
TimerID create()
Undocumented in source.
isPending
bool isPending(TimerID timer)
Undocumented in source.
isPeriodic
bool isPeriodic(TimerID timer)
Undocumented in source.
isUnique
bool isUnique(TimerID descriptor)

Determines if the given timer's reference count equals one.

isValid
bool isValid(TimerID handle)

Determines whether the given timer handle is valid.

rawUserData
void* rawUserData(TimerID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)

Low-level user data access. Use userData instead.

releaseRef
bool releaseRef(TimerID descriptor)

Decrements the reference count of the given resource.

set
void set(TimerID timer, Duration timeout, Duration repeat)

Run the timer.

stop
void stop(TimerID timer)
Undocumented in source.
wait
void wait(TimerID timer, TimerCallback callback)
void wait(TimerID timer, TimerCallback2 callback)

Waits for the timer to fire.

Properties

userData
TimerID userData [@property setter]

Retrieves a reference to a user-defined value associated with a descriptor.

Meta