improved disconnect search interval

This commit is contained in:
Jeff Hill
2003-07-03 15:07:51 +00:00
parent 37476c6482
commit 773c12becc
6 changed files with 33 additions and 14 deletions

View File

@@ -67,10 +67,11 @@ searchTimer::~searchTimer ()
}
void searchTimer::newChannelNotify (
epicsGuard < udpMutex > & guard, const epicsTime & currentTime, bool firstChannel )
epicsGuard < udpMutex > & guard, const epicsTime & currentTime,
bool firstChannel, unsigned minRetryNo )
{
if ( firstChannel ) {
this->recomputeTimerPeriod ( guard, 0 );
this->recomputeTimerPeriod ( guard, minRetryNo );
double newPeriod = this->period;
{
// avoid timer cancel block deadlock
@@ -79,7 +80,8 @@ void searchTimer::newChannelNotify (
}
}
else {
this->recomputeTimerPeriodAndStartTimer ( guard, currentTime, 0, 0.0 );
this->recomputeTimerPeriodAndStartTimer ( guard,
currentTime, minRetryNo, 0.0 );
}
}