Changeset 3902 in Sophya


Ignore:
Timestamp:
Oct 7, 2010, 11:28:56 PM (15 years ago)
Author:
ansari
Message:

Suite recherche de probleme/debug de blocage avec mfacq/ethernet, Reza 07/10/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/racqueth.cc

    r3901 r3902  
    580580      for(uint_4 fib=0; fib<memgr_.NbFibres(); fib++) {
    581581        if (curfc_[fib]>=cfc)  continue;
    582         if (ReadNext(fib)) return true;  // probleme     
    583         encorerd=true;        
     582        if (ReadNext(fib)) return true;  // probleme
     583        if (curfc_[fib] > cfc) { encorerd=true;  cfc=curfc_[fib]; }              
    584584      }
    585585      ntrd++;
    586       if (ntrd>sfc_maxdpc_) {
     586      bool fgsamefc2=true;
     587      cfc=curfc_[0];
     588      for(size_t fib=1; fib<memgr_.NbFibres(); fib++) {
     589        if (curfc_[fib]!=cfc) {
     590          fgsamefc2=false;
     591          if (curfc_[fib] > cfc)  cfc=curfc_[fib];
     592        }
     593      }
     594      if (fgsamefc2) {
     595        totsamefc_++;  return false;  // c'est OK  , same framecounter
     596      }
     597      if ((sfc_maxdpc_>0)&&(ntrd>sfc_maxdpc_)) {
    587598        if (prtlev_>0) 
    588           cout << ">S>S>S> EthernetReader::ReadNextAllFibers(" << fib << ")/ Stopping, Nb_ReadNext=" 
     599          cout << ">S>S>S> EthernetReader::ReadNextAllFibers()/ Stopping, Nb_ReadNext=" 
    589600               << ntrd << " > sfc_maxdpc_" << endl;
    590601        stopreason_="ReadNextAllFibers() StopReason: failed to get SameFC Nb_ReadNext>sfc_maxdpc_";
Note: See TracChangeset for help on using the changeset viewer.