omni::chrono::queue_timer

SYNOPSIS

A timer class that invokes or queues a basic tick event.

top

DESCRIPTION

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

NOTES

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