omni::chrono::drop_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. If the timer is stopped and there are still events queued up, all remaining events will be effectively dropped and not executed.

top

NOTES

Since the timer event happens on a new thread, care must be taken to make sure the attached delegate is re-entrant.

top