elevated priority of CAC timer event thread

This commit is contained in:
Jeff Hill
2000-06-16 20:00:06 +00:00
parent 7efef48a21
commit 5313404121
6 changed files with 54 additions and 25 deletions

View File

@@ -39,14 +39,18 @@ searchTimer::searchTimer (udpiiu &iiuIn, osiTimerQueue &queueIn) :
//
// searchTimer::reset ()
//
void searchTimer::reset (double delayToNextTry)
void searchTimer::reset ( double delayToNextTry )
{
LOCK (this->iiu.pcas);
this->retry = 0;
this->period = CA_RECAST_DELAY;
UNLOCK (this->iiu.pcas);
if (this->timeRemaining()>delayToNextTry) {
if ( delayToNextTry < CA_RECAST_DELAY ) {
delayToNextTry = CA_RECAST_DELAY;
}
if ( this->timeRemaining () > delayToNextTry ) {
this->reschedule (delayToNextTry);
debugPrintf ( ("reschedualed search timer for completion in %f sec\n", delayToNextTry) );
}