22#ifndef OmniThreadCreator_h_
23#define OmniThreadCreator_h_
25#include <omnithread.h>
90 template<
class ThreadMaster>
97 typedef void(ThreadMaster::*
Action)();
102 inline bool isRunning()
104 return omni_thread::state() == omni_thread::STATE_RUNNING;
108 omni_thread::exit(0);
112 return omni_thread::id();
117 omni_thread::join(NULL);
121 void* run_undetached(
void* x)
129 virtual void run(
void* arg)
137 std::shared_ptr<ThreadMaster> m;
142 template <
class ThreadMaster>
143 OmniThreadCreator<ThreadMaster>::OmniThreadCreator(
const std::shared_ptr<ThreadMaster>& _m, Action a,
bool undetach ):
153 template <
class ThreadMaster>
154 OmniThreadCreator<ThreadMaster>::OmniThreadCreator():
Definition OmniThreadCreator.h:93
void(ThreadMaster::* Action)()
Definition OmniThreadCreator.h:97
Definition Calibration.h:27