transwarp
|
The executor interface used to perform custom task execution. More...
#include <transwarp.h>
Public Member Functions | |
virtual std::string | name () const =0 |
Returns the name of the executor. | |
virtual void | execute (const std::function< void()> &functor, transwarp::itask &task)=0 |
Runs a task which is wrapped by the given functor. The functor only captures one shared pointer and can hence be copied at low cost. task represents the task that the functor belongs to. This function is only ever called on the thread of the caller to schedule(). The implementer needs to ensure that this never throws exceptions. | |
The executor interface used to perform custom task execution.