virtual bool configure(ResourceFinder &rf)
    {
        thr=new CtrlThread(CTRL_THREAD_PER);
        if (!thr->start())
        {
            delete thr;
            return false;
        }

        return true;
    }
示例#2
0
 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;
 }
示例#3
0
文件: main.cpp 项目: iron76/Teaching
    bool configure(ResourceFinder &rf)
    {
        Time::turboBoost();
        thr=new CtrlThread(rf);
        if (!thr->start())
        {
            delete thr;
            return false;
        }

        return true;
    }