Changeset 3635 in Sophya for trunk/AddOn/TAcq/racqumem.cc


Ignore:
Timestamp:
May 26, 2009, 5:05:44 PM (16 years ago)
Author:
ansari
Message:

Amelioration/ correction diverses, introduction du programme de lecture / traitement multi-thread mcrd.cc - Reza 26/05/2009

File:
1 edited

Legend:

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

    r3626 r3635  
    77
    88/* --Methode-- */
    9 RAcqMemZoneMgr::RAcqMemZoneMgr(uint_4 nz, uint_4 np, uint_4 psz)
    10   : mex(true), nzones(nz), npaq(np), paqsz(psz), stop_(false)
     9RAcqMemZoneMgr::RAcqMemZoneMgr(uint_4 nz, uint_4 np, uint_4 psz, uint_4 procpsz)
     10  : mex(true), nzones(nz), npaq(np), paqsz(psz), procpaqsz(procpsz),stop_(false)
    1111{
    1212  St_MemZ st;
     
    1717  for(int k=0; k<6; k++) st.nbact[k] = 0;
    1818  uint_8 mzsz = npaq*paqsz;
     19  uint_8 procmzsz = npaq*procpaqsz;
    1920
    2021   for(int k=0; k<NbZones(); k++) {
    2122     memzones.push_back(new Byte[mzsz] );
    2223     states.push_back(st);
     24     if (procmzsz > 0)  procmemzones.push_back(new Byte[procmzsz] );
    2325   }
    2426  serial_ = 0;
     
    4345  int rid = -1;
    4446  if (stop_) return rid;
    45   if ((act != MemZA_Fill) && (act != MemZA_Save) && (act != MemZA_Proc)) return rid;
     47  if ((act != MemZA_Fill) && (act != MemZA_Save) && (act != MemZA_Proc) &&
     48      (act != MemZA_ProcA) && (act != MemZA_ProcB) && (act != MemZA_ProcC)) return rid;
    4649  mex.lock();
    4750  uint_8 bestserial = serial_ + 5;
     
    184187  os << "RAcqMemZoneMgr::Print() NbZones=" << NbZones() << " PaqSize()=" << PaqSize()
    185188     << " NbPaquets()=" << NbPaquets() << " ZoneSize()=" << ZoneSize() << endl;
     189  if (ProcPaqSize() > 0) 
     190    cout << " ... With Processed Data Zones ProcPaqSize()=" << ProcPaqSize()
     191         << " ProcZoneSize()=" << ProcZoneSize() << endl;
     192  else cout << " ... NO Processed Data Zones" << endl;
    186193  for(uint_4 k=0; k<states.size(); k++)
    187194    os << " [" << k << "] Act=" << states[k].act << " Stat=" << states[k].stat
Note: See TracChangeset for help on using the changeset viewer.