diff --git a/src/libCom/timer/osiTimer.cpp b/src/libCom/timer/osiTimer.cpp index 302762e94..1e1160774 100644 --- a/src/libCom/timer/osiTimer.cpp +++ b/src/libCom/timer/osiTimer.cpp @@ -267,7 +267,7 @@ void osiTimer::arm (double initialDelay) // tsDLIterBD iter = this->queue.timerLists[statePending].last (); while (1) { - if ( iter == tsDLIterBD::eol () ) { + if ( ! iter.valid () ) { // // add to the beginning of the list // @@ -520,7 +520,7 @@ double osiTimerQueue::delayToFirstExpire () const // void osiTimerQueue::process () { - osiTime cur (osiTime::getCurrent()); + osiTime cur ( osiTime::getCurrent () ); osiTimer *pTmr; this->mutex.lock (); @@ -533,12 +533,12 @@ void osiTimerQueue::process () this->inProcess = true; - tsDLIterBD iter = this->timerLists[osiTimer::statePending].first (); - while ( iter != tsDLIterBD::eol () ) { - if (iter->exp >= cur) { + tsDLIterBD iter = this->timerLists[osiTimer::statePending].first (); + while ( iter.valid () ) { + if ( iter->exp > cur ) { break; } - tsDLIterBD tmp = iter; + tsDLIterBD tmp = iter; ++tmp; this->timerLists[osiTimer::statePending].remove(*iter); iter->curState = osiTimer::stateExpired; @@ -608,7 +608,7 @@ void osiTimerQueue::show(unsigned level) const this->timerLists[osiTimer::statePending].count(), this->timerLists[osiTimer::stateExpired].count()); tsDLIterBD iter(this->timerLists[osiTimer::statePending].first()); - while ( iter!=tsDLIterBD::eol() ) { + while ( iter.valid () ) { iter->show(level); ++iter; }