BitMagic-C++
|
BitMagic task with a captured function. More...
#include <bmtask.h>
Public Types | |
enum | task_flags { no_flag = 0 , barrier_ok = 1u , barrier_any = (1u << 1) , barrier_ok_delayed = (1u << 2) } |
Public Member Functions | |
task_descr () BMNOEXCEPT | |
task_descr (const task_descr &td) | |
More... | |
task_descr (task_function_t f, void *argptr=0) noexcept | |
More... | |
void | init (task_function_t f, void *argptr) noexcept |
More... | |
int | run () |
More... | |
Data Fields | |
task_function_t | func |
captured function callback More... | |
void * | argp |
arg pointer More... | |
bm::id64_t | flags |
task flags to designate barriers More... | |
int | err_code |
error code More... | |
std::atomic_bool | done |
0 - pending More... | |
void* bm::task_descr::argp |
arg pointer
Definition at line 72 of file bmtask.h.
Referenced by init(), run(), bm::thread_pool_executor< TPool >::run(), bm::run_task_batch(), task_descr(), and bm::thread_pool< QValue, Lock >::worker_func().
std::atomic_bool bm::task_descr::done |
0 - pending
Definition at line 77 of file bmtask.h.
Referenced by init(), run(), bm::thread_pool_executor< TPool >::run(), task_descr(), bm::thread_pool_executor< TPool >::wait_for_batch_done(), and bm::thread_pool< QValue, Lock >::worker_func().
int bm::task_descr::err_code |
error code
Definition at line 76 of file bmtask.h.
Referenced by run(), bm::thread_pool_executor< TPool >::run(), task_descr(), and bm::thread_pool< QValue, Lock >::worker_func().
bm::id64_t bm::task_descr::flags |
task flags to designate barriers
Definition at line 75 of file bmtask.h.
Referenced by init(), bm::thread_pool_executor< TPool >::run(), and task_descr().
task_function_t bm::task_descr::func |
captured function callback
Definition at line 71 of file bmtask.h.
Referenced by init(), run(), bm::thread_pool_executor< TPool >::run(), task_descr(), and bm::thread_pool< QValue, Lock >::worker_func().