yev_start_timer_event()
#
yev_start_timer_event()
starts a timer event, creating the handler file descriptor if it does not exist.
Prototype
int yev_start_timer_event(
yev_event_h yev_event,
time_t timeout_ms,
BOOL periodic
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Handle to the event that will be started as a timer. |
|
|
Timeout in milliseconds. A value of |
|
|
If |
Return Value
Returns 0
on success, or -1
on failure.
Notes
To start a timer event, use yev_start_timer_event()
instead of yev_start_event()
.
If the timer is in the IDLE
state, it can be reused. If it is STOPPED
, a new timer event must be created.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples