The executor interface used to perform custom task execution. More...
#include <transwarp.h>
Public Member Functions | |
virtual std::string | get_name () const =0 |
Is supposed to return the name of the executor. | |
virtual void | execute (const std::function< void()> &functor, const std::shared_ptr< transwarp::node > &node)=0 |
Is supposed to run a task which is wrapped by the functor. The functor only captures two smart pointers and can hence be copied at low cost. node represents the task that the functor belongs to. This function is only ever called on the thread of the caller to schedule() | |
The executor interface used to perform custom task execution.