Beispiel #1
0
Unit *getNextUnit()
{
   UnitTime ut = time_queue.top();
   time_queue.pop();
   ticks = ut.tick;
   return (current_unit = ut.unit);
}
Beispiel #2
0
 void get_next(fractional_t &t)
 {
     TestPoints* pt;
     do // avoid duplicates
     {
         pt = queue.top();
         queue.pop();
         t = pt->get_cur();
         pt->next();
         queue.push(pt);
     } while (t == last);
     last = t;
 }