replace most internal getCurrent() -> getMonotonic()
every place where a time delta is computed, and then some.
This commit is contained in:
@@ -143,7 +143,7 @@ bool epicsThread::exitWait ( const double delay ) throw ()
|
||||
}
|
||||
return true;
|
||||
}
|
||||
epicsTime exitWaitBegin = epicsTime::getCurrent ();
|
||||
epicsTime exitWaitBegin = epicsTime::getMonotonic ();
|
||||
double exitWaitElapsed = 0.0;
|
||||
epicsGuard < epicsMutex > guard ( this->mutex );
|
||||
this->cancel = true;
|
||||
@@ -151,7 +151,7 @@ bool epicsThread::exitWait ( const double delay ) throw ()
|
||||
epicsGuardRelease < epicsMutex > unguard ( guard );
|
||||
this->event.signal ();
|
||||
this->exitEvent.wait ( delay - exitWaitElapsed );
|
||||
epicsTime current = epicsTime::getCurrent ();
|
||||
epicsTime current = epicsTime::getMonotonic ();
|
||||
exitWaitElapsed = current - exitWaitBegin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user