Changeset 3635 in Sophya for trunk/AddOn/TAcq/racqumem.cc
- Timestamp:
- May 26, 2009, 5:05:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/racqumem.cc
r3626 r3635 7 7 8 8 /* --Methode-- */ 9 RAcqMemZoneMgr::RAcqMemZoneMgr(uint_4 nz, uint_4 np, uint_4 psz )10 : mex(true), nzones(nz), npaq(np), paqsz(psz), stop_(false)9 RAcqMemZoneMgr::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) 11 11 { 12 12 St_MemZ st; … … 17 17 for(int k=0; k<6; k++) st.nbact[k] = 0; 18 18 uint_8 mzsz = npaq*paqsz; 19 uint_8 procmzsz = npaq*procpaqsz; 19 20 20 21 for(int k=0; k<NbZones(); k++) { 21 22 memzones.push_back(new Byte[mzsz] ); 22 23 states.push_back(st); 24 if (procmzsz > 0) procmemzones.push_back(new Byte[procmzsz] ); 23 25 } 24 26 serial_ = 0; … … 43 45 int rid = -1; 44 46 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; 46 49 mex.lock(); 47 50 uint_8 bestserial = serial_ + 5; … … 184 187 os << "RAcqMemZoneMgr::Print() NbZones=" << NbZones() << " PaqSize()=" << PaqSize() 185 188 << " 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; 186 193 for(uint_4 k=0; k<states.size(); k++) 187 194 os << " [" << k << "] Act=" << states[k].act << " Stat=" << states[k].stat
Note:
See TracChangeset
for help on using the changeset viewer.