![]() |
fpmas 1.6
|
#include <scheduler.h>
Public Member Functions | |
template<typename Lambda_t > | |
LambdaTask (api::graph::DistributedNode< T > *node, Lambda_t &&lambda_fct) | |
void | run () override |
![]() | |
NodeTask (api::graph::DistributedNode< T > *node) | |
api::graph::DistributedNode< T > * | node () override |
![]() | |
void | setJobPos (JID job_id, std::list< fpmas::api::scheduler::Task * >::iterator pos) override |
std::list< api::scheduler::Task * >::iterator | getJobPos (JID job_id) const override |
virtual api::graph::DistributedNode< T > * | node ()=0 |
![]() | |
virtual void | run ()=0 |
virtual void | setJobPos (JID job_id, std::list< Task * >::iterator pos)=0 |
virtual std::list< Task * >::iterator | getJobPos (JID job_id) const =0 |
A NodeTask that can be initialized from a lambda function.
Used by the FPMAS_NODE_TASK() macro.
|
inline |
LambdaTask constructor.
The specified lambda function must have a void ()
signature.
automatically | deduced lambda function type |
node | node bound to the task |
lambda_fct | void() lambda function, that will be run by the task |
|
inlineoverridevirtual |
Runs the task.
Implements fpmas::api::scheduler::Task.