/[libvob]/libvob/src/stats/Stats.cxx
ViewVC logotype

Diff of /libvob/src/stats/Stats.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Mon Jun 23 14:53:19 2003 UTC revision 1.4 by tjl, Thu Jun 26 08:52:13 2003 UTC
# Line 74  namespace Stats { Line 74  namespace Stats {
74      }      }
75      void Statistics::clear() {      void Statistics::clear() {
76          DBG(dbg) << format("Clear: %x\n") % first;          DBG(dbg) << format("Clear: %x\n") % first;
77          for(Collector *i = first; i != 0; i = i->next) {          Collector *next;
78            for(Collector *i = first; i != 0; i = next) {
79                DBG(dbg) << format("Clear stats and onlist: %x\n") % i;
80              i->clear();              i->clear();
         }  
         for(Collector *i = first; i != 0; i = i->next) {  
81              i->onList = false;              i->onList = false;
82                next = i->next;
83              i->next = 0;              i->next = 0;
84          }          }
85          first = 0;          first = 0;
# Line 86  namespace Stats { Line 87  namespace Stats {
87      void Statistics::call(void *u) {      void Statistics::call(void *u) {
88          DBG(dbg) << format("Call: %x\n") % first;          DBG(dbg) << format("Call: %x\n") % first;
89          for(Collector *i = first; i != 0; i = i->next) {          for(Collector *i = first; i != 0; i = i->next) {
90              DBG(dbg) << format("Calling: %x") % i;              DBG(dbg) << format("Calling: %x\n") % i;
91              i->call(u);              i->call(u);
92          }          }
93      }      }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26