improved diagnostic

This commit is contained in:
Jeff Hill
2000-09-07 01:10:30 +00:00
parent b1a7c46788
commit 8cb926b254

View File

@@ -183,7 +183,7 @@ void osiTimer::reschedule (double newDelay)
// occurring during the expire call
// back
//
if (this == this->queue.pExpireTmr) {
if ( this == this->queue.pExpireTmr ) {
this->queue.pExpireTmr = 0;
}
this->queue.timerLists[this->curState].remove (*this);
@@ -514,6 +514,9 @@ double osiTimerQueue::delayToFirstExpire () const
pTmr = this->timerLists[osiTimer::statePending].first ();
if (pTmr) {
delay = pTmr->timeRemaining ();
# ifdef DEBUG
printf ("delay for %f sec for %s\n", delay, pTmr->name () );
# endif
}
else {
//
@@ -524,9 +527,6 @@ double osiTimerQueue::delayToFirstExpire () const
this->mutex.unlock ();
#ifdef DEBUG
printf ("delay to first item on the queue %f\n", (double) delay);
#endif
return delay; // seconds
}