virtual bool close() { thr->stop(); delete thr; return true; }
virtual bool close() { if (control_thr) { control_thr->stop(); delete control_thr; } return true; }
virtual bool configure(ResourceFinder &rf) { thr=new CtrlThread(CTRL_THREAD_PER); if (!thr->start()) { delete thr; return false; } return true; }
virtual bool configure(ResourceFinder &rf) { int rate = rf.check("rate",Value(20)).asInt(); control_thr=new CtrlThread(rate,rf); if (!control_thr->start()) { delete control_thr; return false; } return true; }
bool configure(ResourceFinder &rf) { Time::turboBoost(); thr=new CtrlThread(rf); if (!thr->start()) { delete thr; return false; } return true; }