Skip to contentSkip to conversation

timer question

DISCUSSION Emmanuel Chaput 1 participant 1 message Mar 5, 2002

lore
Share & tools
lore
#0 lore raw

Hi !

I have a problem with the first part of run_timer_list() :

  if (!tv1.index) {
        int n = 1;
         do {
                cascade_timers(tvecs[n]);
         } while (tvecs[n]->index == 1 && ++n < NOOF_TVECS);
   }

My problem is that tv*.index is initialized to 0, so the first call to
run_timer_list() will result in a (useless) call to cascade_timers() for tvecs[1..NOOF_TVECS - 1].

Am I wrong ? Thanks to anyone who could help me !

Signature · 2 lines
Emmanuel Chaput                         Dépt Télécom & Réseau, ENSEEIHT
*5 61 58 82 10 (Fax *5 61 58 80 14)         [email protected]