NAME
A member of omni::chrono::queue_timer
omni::chrono::queue_timer::tick
A member of omni::chrono::queue_timer
#include <omni/chrono/queue_timer.hpp>omni::chrono::timer_event omni::chrono::queue_timer::tick
DESCRIPTION
The event that is raised when the timer elapses. Each delegate is called in the order to which it was attached. The tick event is supposed to be a short-lived function, or you are to ensure that a separate thread is called to handle the elapsed time.
top
The event that is raised when the timer elapses. Each delegate is called in the order to which it was attached. The tick event is supposed to be a short-lived function, or you are to ensure that a separate thread is called to handle the elapsed time.
top
CONSIDERATIONS
Since the timer event happens on a new thread, care must be taken to make sure the attached delegate is re-entrant. It should also be noted that since these events can be queued, even after the timer has been stopped, all events remaining in the queue will continue to fire.
top
Since the timer event happens on a new thread, care must be taken to make sure the attached delegate is re-entrant. It should also be noted that since these events can be queued, even after the timer has been stopped, all events remaining in the queue will continue to fire.
top
NOTES
This timer will invoke a
top
This timer will invoke a
tick event at a specified interval, and depending on how long the delegate takes to complete, could queue up additional events. In other words, if the timer elapses while an event is still executing, the next event will be queued up and fire after the completion of the current event.
top