00001 00007 #include "timeoutedtaskscheduler.h" 00008 00009 00010 TimeoutedTaskScheduler::TimeoutedTaskScheduler(unsigned int maxDelayTimeMS) : 00011 _maxDelayTimeUS(maxDelayTimeMS * 1000) 00012 { 00013 } 00014 00015 void TimeoutedTaskScheduler::doEventLoop(char *watchVariable) 00016 { 00017 // Repeatedly loop, handling readble sockets and timed events: 00018 while (!watchVariable || !(*watchVariable)) 00019 { 00020 SingleStep(_maxDelayTimeUS); 00021 } 00022 }
1.5.5