9 #include <boost/thread/xtime.hpp>
10 #include <boost/bind.hpp>
11 #include "../Exceptions.hpp"
24 updater_thread = NULL;
31 if(updater_thread != NULL)
32 delete updater_thread;
38 if(updater_thread == NULL)
44 updater_thread->join();
45 delete updater_thread;
46 updater_thread = NULL;
59 if(!isStarted() && updater_thread == NULL)
69 void TimeoutThread::timeoutRunner()
78 this->timeoutFunction();
83 cerr <<
"Halted timeout due to exception: " << e.what() <<
"\n";
88 cerr <<
"Halted timeout due to exception: " << m <<
"\n";
98 sleep(timeout_length);
107 boost::xtime_get(&xt,boost::TIME_UTC);
108 xt.nsec += stime * 1000000;
109 boost::thread::sleep(xt);