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

@@ -43,7 +43,8 @@ epicsTimerQueueActive & epicsTimerQueueActive::allocate ( bool okToShare, unsign
timerQueueActive::timerQueueActive ( bool okToShareIn, unsigned priority ) :
queue ( *this ), thread ( *this, "timerQueue",
epicsThreadGetStackSize ( epicsThreadStackMedium ), priority ),
okToShare ( okToShareIn ), exitFlag ( false ), terminateFlag ( false )
sleepQuantum ( epicsThreadSleepQuantum() ), okToShare ( okToShareIn ),
exitFlag ( false ), terminateFlag ( false )
{
this->thread.start ();
}
@@ -88,7 +89,7 @@ void timerQueueActive::reschedule ()
double timerQueueActive::quantum ()
{
return epicsThreadSleepQuantum ();
return this->sleepQuantum;
}
void timerQueueActive::show ( unsigned int level ) const