#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) |
Definition at line 223 of file tjthread.h.
| ThreadedLoop< In, Out >::ThreadedLoop | ( | ) | [inline] |
Default constructor.
Definition at line 230 of file tjthread.h.
| bool ThreadedLoop< In, Out >::init | ( | unsigned int | numof_threads, | |
| unsigned int | loopsize | |||
| ) | [inline] |
Initialize to use 'numof_threads' executing 'loopsize' jobs in parallel. Starts the worker threads.
Definition at line 30 of file tjthread_code.h.
| void ThreadedLoop< In, Out >::destroy | ( | ) | [inline] |
Stops the worker threads.
Definition at line 60 of file tjthread_code.h.
| bool ThreadedLoop< In, Out >::execute | ( | const In & | in, | |
| STD_vector< Out > & | outvec | |||
| ) | [inline] |
Execute loop using input 'in' and storing result from each thread in 'outvec'.
Definition at line 74 of file tjthread_code.h.
1.5.6