move sleep quantum cache to proper place in active timer queue

This commit is contained in:
Jeff Hill
2003-03-26 22:12:07 +00:00
parent 7b589b0e27
commit d0f68ee85f
4 changed files with 6 additions and 6 deletions

View File

@@ -66,7 +66,7 @@ void timer::start ( epicsTimerNotify & notify, const epicsTime & expire )
void timer::privateStart ( epicsTimerNotify & notify, const epicsTime & expire )
{
this->pNotify = & notify;
this->exp = expire - this->queue.sleepQuantumOverTwo;
this->exp = expire - ( this->queue.notify.quantum () / 2.0 );
bool reschedualNeeded = false;
if ( this->curState == stateActive ) {