Merge remote-tracking branch 'lp-Com/use-monotonic' into 7.0
* lp-Com/use-monotonic: VxWorks: Measure CPU time-base frequency if necessary replace most internal getCurrent() -> getMonotonic() dbScan periodic scan use monotonic time monotonic adapt to regular time APIs
This commit is contained in:
@@ -164,7 +164,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;
|
||||
@@ -172,7 +172,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;
|
||||
}
|
||||
if(this->terminated && !joined) {
|
||||
|
||||
Reference in New Issue
Block a user