Class task_allocator

Inheritance Relationships

Base Type

  • public boost::static_visitor< polled_task * >

Class Documentation

class task_allocator : public boost::static_visitor<polled_task*>

Maps the task data structure to its variant, and then applies the corresponding allocation policy to the mapped variant to allocate a task.

Public Functions

inline task_allocator(const config::task_alloc_config *config, rmath::rng *rng)
task_allocator(const task_allocator&) = delete
inline polled_task *operator()(ds::bi_tdgraph &graph, const polled_task *last_task, size_t alloc_count) const
task_allocator &operator=(const task_allocator&) = delete