22 #include <tjutils/tjutils.h>
34 class ThreadComponent {
36 static const char* get_compName();
73 Mutex& operator = (
const Mutex&) {
return *
this;}
143 Event& operator = (
const Event&) {
return *
this;}
180 bool start(
unsigned int stack_size=0);
222 template<
typename In,
typename Out,
typename Local>
238 bool init(
unsigned int numof_threads,
unsigned int loopsize);
248 bool execute(
const In& in, STD_vector<Out>& outvec);
256 virtual bool kernel(
const In& in, Out& out, Local& local,
unsigned int begin,
unsigned int end) = 0;
259 class WorkThread :
public Thread {
273 volatile bool status;
282 unsigned int mainbegin;
283 unsigned int mainend;
285 friend class WorkThread;
286 STD_vector<WorkThread*> threads;
bool start(unsigned int stack_size=0)
bool execute(const In &in, STD_vector< Out > &outvec)
bool init(unsigned int numof_threads, unsigned int loopsize)