fpmas 1.6
Public Member Functions | List of all members
fpmas::scheduler::detail::LambdaTask Class Reference

#include <scheduler.h>

Inheritance diagram for fpmas::scheduler::detail::LambdaTask:
Inheritance graph
[legend]
Collaboration diagram for fpmas::scheduler::detail::LambdaTask:
Collaboration graph
[legend]

Public Member Functions

template<typename Lambda_t >
 LambdaTask (Lambda_t &&lambda_fct)
 
void run () override
 
- Public Member Functions inherited from fpmas::scheduler::TaskBase< api::scheduler::Task >
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
 
- Public Member Functions inherited from fpmas::api::scheduler::Task
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
 

Detailed Description

api::scheduler::Task implementation based on a lambda function.

Constructor & Destructor Documentation

◆ LambdaTask()

template<typename Lambda_t >
fpmas::scheduler::detail::LambdaTask::LambdaTask ( Lambda_t &&  lambda_fct)
inline

LambdaTask constructor.

The specified lambda function must have a void () signature.

Template Parameters
automaticallydeduced lambda function type
Parameters
lambda_fctvoid() lambda function, that will be run by the task

Member Function Documentation

◆ run()

void fpmas::scheduler::detail::LambdaTask::run ( )
inlineoverridevirtual

Runs the task.

Implements fpmas::api::scheduler::Task.


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