added try/catch blocks so that we hopefully can bridge

periods where the new general time provides (unexpectedly
considering its advertised benfits) no time at all.
This commit is contained in:
Jeff Hill
2009-05-11 22:50:06 +00:00
parent 20bd4e9b23
commit 8d245ba595
5 changed files with 67 additions and 12 deletions

View File

@@ -197,7 +197,12 @@ void timer::show ( unsigned int level ) const
}
double delay;
if ( this->curState == statePending || this->curState == stateActive ) {
delay = this->exp - epicsTime::getCurrent();
try {
delay = this->exp - epicsTime::getCurrent();
}
catch ( ... ) {
delay = - DBL_MAX;
}
}
else {
delay = -DBL_MAX;