The executor interface. 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 a shared_ptr and can hence be copied at low cost. node represents the task that the functor belongs to. | |
The executor interface.