transwarp
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
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:
transwarp::parallel transwarp::sequential

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. This function is only ever called on the thread of the caller to schedule()
 

Detailed Description

The executor interface used to perform custom task execution.


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