#include "iclThreadUtils.h" #include namespace icl{ struct ExecThreadImpl : public Thread{ std::vector cbs; bool looped; inline void one_cycle(){ for(unsigned int i=0;icbs.push_back(a); if(b) impl->cbs.push_back(b); if(c) impl->cbs.push_back(c); if(d) impl->cbs.push_back(d); if(e) impl->cbs.push_back(e); if(f) impl->cbs.push_back(f); } ExecThread::~ExecThread(){ ICL_DELETE(impl); } void ExecThread::run(bool looped){ impl->looped = looped; impl->start(); } // older misc namespace{ static std::vector g_registered_threads_vec; } void register_thread(Thread *t){ g_registered_threads_vec.push_back(t); } void stop_all_threads(){ for(unsigned int i=0;istop(); } } }