Open Lighting Architecture
Latest Git
|
Allows Callbacks to be scheduled to run after a specified interval.
Public Member Functions | |
virtual timeout_id | RegisterRepeatingTimeout (unsigned int period, Callback0< bool > *callback)=0 |
Execute a callback periodically. More... | |
virtual timeout_id | RegisterRepeatingTimeout (const ola::TimeInterval &period, Callback0< bool > *callback)=0 |
Execute a callback periodically. More... | |
virtual timeout_id | RegisterSingleTimeout (unsigned int delay, SingleUseCallback0< void > *callback)=0 |
Execute a callback after a certain time interval. More... | |
virtual timeout_id | RegisterSingleTimeout (const ola::TimeInterval &delay, SingleUseCallback0< void > *callback)=0 |
Execute a callback after a certain time interval. More... | |
virtual void | RemoveTimeout (timeout_id id)=0 |
Cancel an existing timeout. More... | |
|
pure virtual |
Execute a callback periodically.
period | the number of milliseconds between each execution of the callback. |
callback | the callback to run. Ownership is transferred. |
Returning false from the callback will cause it to be cancelled.
Implemented in ola::io::SelectServer, ola::io::SelectServerInterface, and ola::PluginAdaptor.
|
pure virtual |
Execute a callback periodically.
period | the time interval between each execution of the callback. |
callback | the callback to run. Ownership is transferred. |
Returning false from the callback will cause it to be cancelled.
Implemented in ola::io::SelectServer, ola::io::SelectServerInterface, and ola::PluginAdaptor.
|
pure virtual |
Execute a callback after a certain time interval.
delay | the number of milliseconds before the callback is executed. |
callback | the callback to run. Ownership is transferred. |
Implemented in ola::io::SelectServer, ola::io::SelectServerInterface, and ola::PluginAdaptor.
|
pure virtual |
Execute a callback after a certain time interval.
delay | the time interval to wait before the callback is executed. |
callback | the callback to run. Ownership is transferred. |
Implemented in ola::io::SelectServer, ola::io::SelectServerInterface, and ola::PluginAdaptor.
|
pure virtual |
Cancel an existing timeout.
id | the timeout_id returned by a call to RegisterRepeatingTimeout or RegisterSingleTimeout. |
Implemented in ola::io::SelectServer, ola::io::SelectServerInterface, and ola::PluginAdaptor.