|
BitMagic-C++
|
Interface definition (base class) for a group of tasks (batch). More...
#include <bmtask.h>

Public Types | |
| typedef unsigned | size_type |
Public Member Functions | |
| virtual | ~task_batch_base () |
| virtual size_type | size () const =0 |
| Return size of batch. | |
| virtual bm::task_descr * | get_task (size_type task_idx)=0 |
| Get task by index in the batch. | |
Interface definition (base class) for a group of tasks (batch).
| typedef unsigned bm::task_batch_base::size_type |
|
inlinevirtual |
|
pure virtual |
Get task by index in the batch.
| task_idx | - task index in the batch |
Implemented in bm::task_batch< BVAlloc >, and bm::task_batch< allocator_type >.
Referenced by bm::run_task_batch(), and bm::thread_pool_executor< TPool >::wait_for_batch_done().
|
pure virtual |
Return size of batch.
Implemented in bm::task_batch< BVAlloc >, and bm::task_batch< allocator_type >.
Referenced by bm::run_task_batch(), and bm::thread_pool_executor< TPool >::wait_for_batch_done().