made compatible with timer library API changes

This commit is contained in:
Jeff Hill
2001-05-22 01:46:13 +00:00
parent 13212ddfea
commit 63c2a025d3
10 changed files with 174 additions and 1123 deletions

View File

@@ -63,22 +63,17 @@ void timerQueueActive::run ()
{
this->exitFlag = false;
while ( ! this->terminateFlag ) {
double delay = this->queue.delayToFirstExpire ();
if ( delay <= 0.0 ) {
this->queue.process ();
}
else {
debugPrintf ( ( "timer thread sleeping for %g sec (max)\n", delay ) );
this->rescheduleEvent.wait ( delay );
}
double delay = this->queue.process ( epicsTime::getCurrent() );
debugPrintf ( ( "timer thread sleeping for %g sec (max)\n", delay ) );
this->rescheduleEvent.wait ( delay );
}
this->exitFlag = true;
this->exitEvent.signal (); // no access to queue after exitEvent signal
}
epicsTimer & timerQueueActive::createTimer ( epicsTimerNotify & notify )
epicsTimer & timerQueueActive::createTimer ()
{
timer *pTmr = new timer ( notify, this->queue );
timer *pTmr = new timer ( this->queue );
if ( ! pTmr ) {
throwWithLocation ( timer::noMemory () );
}