#include <scheduler.h>
◆ run()
virtual void fpmas::api::scheduler::Task::run |
( |
| ) |
|
|
pure virtual |
◆ setJobPos()
virtual void fpmas::api::scheduler::Task::setJobPos |
( |
JID |
job_id, |
|
|
std::list< Task * >::iterator |
pos |
|
) |
| |
|
pure virtual |
Sets a list position associated to the Job represented by job_id
, that can be retrieved with getJobPos().
There is no specific requirement about those methods, that can be used or not. However, Job implementations can take advantage of this feature to optimize Task insertion and removal in constant time, using an std::list as an internal data structure.
- Parameters
-
job_id | Job ID |
pos | list iterator that references the current Task within the job associated to job_id |
◆ getJobPos()
virtual std::list< Task * >::iterator fpmas::api::scheduler::Task::getJobPos |
( |
JID |
job_id | ) |
const |
|
pure virtual |
Retrieves a list position that was previously stored using setJobPos().
- Parameters
-
- Returns
- list iterator that references the current Task within the job associated to
job_id
The documentation for this class was generated from the following file: