51 void run_internal(
typename super::function_type* _work_function);
56 virtual thread_num_t get_recommended_num_workers()
override;
59 template <
class TMemInterface >
65 template <
class TMemInterface >
70 template <
class TMemInterface >
73 typename super::function_type *work_function =
nullptr;
79 profile::instrument< void, worker_task_type, void (worker_task_type::*)(typename super::function_type*) >(
super::transient.
task_time,
this, &worker_task_type::run_internal, work_function);
86 template <
class TMemInterface >
92 template <
class TMemInterface >
Definition: workertask.h:23
transient_container transient
The transient
Definition: task.h:259
profile::time task_time
Total time spent running all work functions in this task
Definition: task.h:134
Class stl_allocator.
Definition: allocator.h:16
base_worker_task(typename super::task_graph_type &_task_graph)
Initializes a new instance of the base_worker_task class.
Definition: workertask.h:60
std::atomic_int64_t num_runned
Total number of times work function was called
Definition: task.h:138
bool run() override
Callback to run task
Definition: workertask.h:71
uint32_t minimum_batch_size
Calculated minimum batch size
Definition: task.h:142
Class base_task.
Definition: task.h:44
Class base_task_graph.
Definition: task.h:35
~base_worker_task()
Finalizes an instance of the base_worker_task class.
Definition: workertask.h:66
persistent_container persistent
The persistent
Definition: task.h:263