BitMagic-C++
|
Basic implementation for collection of tasks for parallel execution. More...
#include <bmtask.h>
Public Types | |
typedef BVAlloc | bv_allocator_type |
typedef task_batch_base::size_type | size_type |
typedef std::vector< bm::task_descr > | task_vector_type |
Public Types inherited from bm::task_batch_base | |
typedef unsigned | size_type |
Public Member Functions | |
virtual size_type | size () const BMNOEXCEPT |
task_batch_base intreface implementation More... | |
virtual bm::task_descr * | get_task (size_type task_idx) |
Get task by index in the batch. More... | |
task_vector_type & | get_task_vector () BMNOEXCEPT |
Get access to internal task vector. More... | |
const task_vector_type & | get_task_vector () const BMNOEXCEPT |
More... | |
void | add (task_function_t f, void *argptr) |
More... | |
Public Member Functions inherited from bm::task_batch_base | |
virtual | ~task_batch_base () |
Protected Attributes | |
task_vector_type | task_vect_ |
list of tasks More... | |
Basic implementation for collection of tasks for parallel execution.
|
inline |
Definition at line 172 of file bmtask.h.
References bm::task_batch< BVAlloc >::task_vect_.
Referenced by bm::compute_sim_matrix_plan_builder< BV >::build_plan(), and bm::optimize_plan_builder< SVect, Lock >::build_plan().
|
inlinevirtual |
Get task by index in the batch.
task_idx | - task index in the batch |
Implements bm::task_batch_base.
Definition at line 160 of file bmtask.h.
References bm::task_batch< BVAlloc >::task_vect_.
Referenced by bm::thread_pool_executor< TPool >::run().
|
inline |
Get access to internal task vector.
Definition at line 168 of file bmtask.h.
References bm::task_batch< BVAlloc >::task_vect_.
Referenced by bm::compute_sim_matrix_plan_builder< BV >::build_plan(), bm::sv_serialization_plan_builder< SV >::build_plan(), and bm::optimize_plan_builder< SVect, Lock >::build_plan().
|
inline |
Definition at line 169 of file bmtask.h.
References bm::task_batch< BVAlloc >::task_vect_.
|
inlinevirtual |
task_batch_base intreface implementation
Implements bm::task_batch_base.
Definition at line 158 of file bmtask.h.
References bm::task_batch< BVAlloc >::task_vect_.
Referenced by bm::thread_pool_executor< TPool >::run().
|
protected |
list of tasks
Definition at line 180 of file bmtask.h.
Referenced by bm::task_batch< BVAlloc >::add(), bm::task_batch< BVAlloc >::get_task(), bm::task_batch< BVAlloc >::get_task_vector(), and bm::task_batch< BVAlloc >::size().