Avoid early expiration of timers on !RTOS

This commit is contained in:
Michael Davidsaver
2025-12-03 17:08:48 -08:00
parent 491d532170
commit 01360b2a69
4 changed files with 30 additions and 1 deletions
+5 -1
View File
@@ -65,7 +65,11 @@ void timer::start ( epicsTimerNotify & notify, const epicsTime & expire )
void timer::privateStart ( epicsTimerNotify & notify, const epicsTime & expire )
{
this->pNotify = & notify;
this->exp = expire - ( this->queue.notify.quantum () / 2.0 );
this->exp = expire
#ifdef TIMER_QUANTUM_BIAS
- ( this->queue.notify.quantum () / 2.0 )
#endif
;
bool reschedualNeeded = false;
if ( this->curState == stateActive ) {