minor sanity changes...
This commit is contained in:
parent
a279b355c1
commit
c9e68edff6
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: maroy $
|
Author : $Author: maroy $
|
||||||
Version : $Revision: 1.2 $
|
Version : $Revision: 1.3 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/src/SchedulerThread.cxx,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/eventScheduler/src/SchedulerThread.cxx,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -62,9 +62,7 @@ SchedulerThread :: SchedulerThread(
|
||||||
{
|
{
|
||||||
this->eventContainer = eventContainer;
|
this->eventContainer = eventContainer;
|
||||||
this->granularity = granularity;
|
this->granularity = granularity;
|
||||||
this->shouldRun = true;
|
this->shouldRun = false;
|
||||||
|
|
||||||
getNextEvent(TimeConversion::now());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -119,6 +117,9 @@ SchedulerThread :: nextStep(Ptr<ptime>::Ref now) throw ()
|
||||||
void
|
void
|
||||||
SchedulerThread :: run(void) throw ()
|
SchedulerThread :: run(void) throw ()
|
||||||
{
|
{
|
||||||
|
shouldRun = true;
|
||||||
|
getNextEvent(TimeConversion::now());
|
||||||
|
|
||||||
while (shouldRun) {
|
while (shouldRun) {
|
||||||
Ptr<ptime>::Ref start = TimeConversion::now();
|
Ptr<ptime>::Ref start = TimeConversion::now();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue