ODIN
|
#include <tjthread.h>
Public Member Functions | |
ThreadedLoop () | |
bool | init (unsigned int numof_threads, unsigned int loopsize) |
void | destroy () |
bool | execute (const In &in, STD_vector< Out > &outvec) |
Class to parallelize loops.
Definition at line 223 of file tjthread.h.
|
inline |
Default constructor.
Definition at line 230 of file tjthread.h.
void ThreadedLoop< In, Out, Local >::destroy |
Stops the worker threads.
Definition at line 60 of file tjthread_code.h.
bool ThreadedLoop< In, Out, Local >::execute | ( | const In & | in, |
STD_vector< Out > & | outvec | ||
) |
Execute loop using input 'in' and storing result from each thread in 'outvec'.
Definition at line 74 of file tjthread_code.h.
bool ThreadedLoop< In, Out, Local >::init | ( | unsigned int | numof_threads, |
unsigned int | loopsize | ||
) |
Initialize to use 'numof_threads' executing 'loopsize' jobs in parallel. Starts the worker threads.
Definition at line 30 of file tjthread_code.h.