transwarp
Public Member Functions | List of all members
transwarp::executor Class Referenceabstract

The executor interface used to perform custom task execution. More...

#include <transwarp.h>

Inheritance diagram for transwarp::executor:
Inheritance graph
[legend]

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.
 

Detailed Description

The executor interface used to perform custom task execution.


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