Class polled_task
Defined in File polled_task.hpp
Inheritance Relationships
Base Types
public cosm::ta::executable_task
(Class executable_task)public cosm::ta::taskable
(Class taskable)
Class Documentation
-
class polled_task : public cosm::ta::executable_task, public cosm::ta::taskable
Represents a task whose execution can/should be monitored by the user to determine when it has finished.
Public Functions
-
polled_task(const polled_task&) = delete
-
inline polled_task(const std::string &name, const config::src_sigmoid_sel_config *abort, const rmath::config::ema_config *estimation, std::unique_ptr<taskable> mechanism)
-
~polled_task(void) override
-
void exec_estimate_init(const rmath::rangez &bounds, rmath::rng *rng)
Initialize the execution time estimates of the task randomly within the specified range.
-
polled_task &operator=(const polled_task&) = delete
-
inline virtual void task_execute(void) final override
The method that all tasks must define that specifies how to execute the task.
-
inline virtual bool task_finished(void) const final override
Determine if the task has finished yet.
- Returns:
TRUE
if the task has finished, andFALSE
otherwise.
-
inline virtual void task_reset(void) final override
Reset the task so that it is ready for execution again. Does nothing by default.
-
inline virtual bool task_running(void) const override
Determine if the task has is still running yet.
- Returns:
TRUE
if the task is still running, andFALSE
otherwise.
-
polled_task(const polled_task&) = delete