Open Lighting Architecture  0.9.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::thread::ExecutorInterface Class Reference

Detailed Description

Defer execution of a callback.

The executor interface provides a method to defer execution of a callback. Often we want to break the call stack, say if we need to run a callback that modify / delete a non-reentrant object in our call stack.

Inheritance diagram for ola::thread::ExecutorInterface:
ola::thread::SchedulingExecutorInterface ola::io::SelectServerInterface ola::io::SelectServer ola::PluginAdaptor

Public Member Functions

virtual void Execute (ola::BaseCallback0< void > *callback)=0
 Execute the supplied callback at some point in the future.

Member Function Documentation

virtual void ola::thread::ExecutorInterface::Execute ( ola::BaseCallback0< void > *  callback)
pure virtual

Execute the supplied callback at some point in the future.

Parameters
callbackthe callback to run.

This method guarantees the callback will not be run immediately.

Implemented in ola::io::SelectServer, and ola::PluginAdaptor.


The documentation for this class was generated from the following file: