Ignore:
Timestamp:
Aug 8, 2001, 12:01:41 PM (24 years ago)
Author:
ansari
Message:
  • Ajout pthread_exit apres l'execution de run() ds TOIProcessor::ThreadStart()
  • Ajout de la classe ProcSampleCounter<T> pour affichage continu de stats ds toimanager.h .cc
  • correction mineure de toi2map.cc
  • Utilisation de ProcSampleCounter<T> ds tsttoi2map.cc et simtst.cc

Reza 8/8/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toimanager.h

    r1410 r1629  
    2626};
    2727
     28
     29// -----------------------------------------------------------------
     30//    Classe pour affichage de l'avancement des TOIProcessors
     31//                         Reza 08/2001
     32// -----------------------------------------------------------------
     33
     34class RzProcSampleCounter {
     35public:
     36                RzProcSampleCounter();
     37  virtual       ~RzProcSampleCounter();
     38  virtual long  ProcessedSampleCount() = 0;
     39  virtual long  PrintStats();
     40  inline int &  PrintRate(int pr) { return _rate; }
     41  inline string& InfoMessage() { return _msg; }
     42protected:
     43  int _rate;
     44  string _msg;
     45};
     46
     47template <class T>
     48class ProcSampleCounter : public RzProcSampleCounter {
     49public:
     50                ProcSampleCounter(const T & t) { _t = &t; }
     51  virtual long  ProcessedSampleCount()
     52                      { return _t->ProcessedSampleCount(); }
     53protected:
     54  const T * _t;
     55};
     56
    2857#endif
Note: See TracChangeset for help on using the changeset viewer.