![]() |
Open Lighting Architecture 0.10.9
|
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. | |
| virtual timeout_id | RegisterRepeatingTimeout (const ola::TimeInterval &period, Callback0< bool > *callback)=0 |
| Execute a callback periodically. | |
| virtual timeout_id | RegisterSingleTimeout (unsigned int delay, SingleUseCallback0< void > *callback)=0 |
| Execute a callback after a certain time interval. | |
| virtual timeout_id | RegisterSingleTimeout (const ola::TimeInterval &delay, SingleUseCallback0< void > *callback)=0 |
| Execute a callback after a certain time interval. | |
| virtual void | RemoveTimeout (timeout_id id)=0 |
| Cancel an existing timeout. | |
|
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::client::SelectServer, ola::io::SelectServer, ola::io::SelectServerInterface, ola::plugin::karate::PluginAdaptor, ola::plugin::opendmx::PluginAdaptor, ola::plugin::osc::SelectServerInterface, ola::plugin::stageprofi::SelectServerInterface, ola::PluginAdaptor, ola::SelectServer, ola::SelectServerInterface, ola::thread::SelectServer, and SelectServer.
|
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::client::SelectServer, ola::io::SelectServer, ola::io::SelectServerInterface, ola::plugin::karate::PluginAdaptor, ola::plugin::opendmx::PluginAdaptor, ola::plugin::osc::SelectServerInterface, ola::plugin::stageprofi::SelectServerInterface, ola::PluginAdaptor, ola::SelectServer, ola::SelectServerInterface, ola::thread::SelectServer, and SelectServer.
|
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::client::SelectServer, ola::io::SelectServer, ola::io::SelectServerInterface, ola::plugin::karate::PluginAdaptor, ola::plugin::opendmx::PluginAdaptor, ola::plugin::osc::SelectServerInterface, ola::plugin::stageprofi::SelectServerInterface, ola::PluginAdaptor, ola::SelectServer, ola::SelectServerInterface, ola::thread::SelectServer, and SelectServer.
|
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::client::SelectServer, ola::io::SelectServer, ola::io::SelectServerInterface, ola::plugin::karate::PluginAdaptor, ola::plugin::opendmx::PluginAdaptor, ola::plugin::osc::SelectServerInterface, ola::plugin::stageprofi::SelectServerInterface, ola::PluginAdaptor, ola::SelectServer, ola::SelectServerInterface, ola::thread::SelectServer, and SelectServer.
|
pure virtual |
Cancel an existing timeout.
| id | the timeout_id returned by a call to RegisterRepeatingTimeout or RegisterSingleTimeout. |
Implemented in ola::client::SelectServer, ola::io::SelectServer, ola::io::SelectServerInterface, ola::plugin::karate::PluginAdaptor, ola::plugin::opendmx::PluginAdaptor, ola::plugin::osc::SelectServerInterface, ola::plugin::stageprofi::SelectServerInterface, ola::PluginAdaptor, ola::SelectServer, ola::SelectServerInterface, ola::thread::SelectServer, and SelectServer.