#include "HmscomProcess.h" #include #include cl_process::cl_process() { stop(); } cl_process::~cl_process() { } void cl_process::start () { pthread_create (&this_addr, NULL, thread_code, this); } /*! \fn cl_process::wait() */ void cl_process::wait() { /// @todo implement me pthread_join(this_addr, NULL); } void cl_process::stop() { int pthread_cancel(this_addr); } static void *thread_code(void* p) { cl_process *good_thread_class = reinterpret_cast (p); good_thread_class->run(); }