Changeset 2037 in Sophya for trunk/ArchTOIPipe/Kernel


Ignore:
Timestamp:
May 31, 2002, 10:10:58 AM (23 years ago)
Author:
ansari
Message:

Amelioration NoOpProcessor et mesovh2.cc pour investigation pb kill sur magique - Reza 31/5/2002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/cgt.cc

    r2000 r2037  
    1111
    1212#include "cgt.h"
     13#include <typeinfo>
    1314#include "toiseqbuff.h"
    1415#include "toisegment.h"
     
    108109  //  for(it = lesProcs.begin(); it != lesProcs.end(); it++) {
    109110  for(int i=0; i< lesProcs.size(); i++) {
    110     os << " >> Proc Id= " << i << " @ " << hex << lesProcs[i] << dec << endl;
     111    os << " >> Proc Id= " << i << " @ " << hex << lesProcs[i] << dec ;
     112    string ctyp = typeid(*lesProcs[i]).name();
     113    os << " Type= " << ctyp << endl;
    111114    if (prstat) lesProcs[i]->PrintStatus(os);
    112115  }
     
    115118void CGT::ListTOIs(::ostream& os, bool prstat)
    116119{
    117   os << " --- CGT::ListTOIs() , NbProcs=" << lesTuyaux.size();
     120  os << " --- CGT::ListTOIs() , NbTOIs=" << lesTuyaux.size();
    118121  if ( fgSegmented ) os << " Default TOI: TOISegmented " << endl;
    119122  else os << " Default TOI: TOISeqBuffered " << endl;
     
    121124    os << " >> TOI " << lesTuyaux[i].toi->getName() << " Connecting Procs (Id): "
    122125       << lesTuyaux[i].pr1id << " <---> " << lesTuyaux[i].pr2id << endl;
    123     if (prstat) lesTuyaux[i].toi->PrintStatus(os);   
     126    if (prstat > 1)  lesTuyaux[i].toi->PrintStatus(os);   
     127    else if (prstat == 1) 
     128      os << " PutCountWait= " << lesTuyaux[i].toi->getCountWaitPut()
     129         << " GetCountWait= " << lesTuyaux[i].toi->getCountWaitGet() << endl;
    124130  } 
    125131}
Note: See TracChangeset for help on using the changeset viewer.