Changeset 1037 for XIOS/dev/branch_yushan/src/filter/store_filter.cpp
- Timestamp:
- 01/25/17 16:25:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/filter/store_filter.cpp
r1029 r1037 8 8 CStoreFilter::CStoreFilter(CGarbageCollector& gc, CContext* context, CGrid* grid) 9 9 : CInputPin(gc, 1) 10 , gc(gc)11 10 , context(context) 12 11 , grid(grid) … … 24 23 CTimer timer("CStoreFilter::getPacket"); 25 24 CConstDataPacketPtr packet; 26 const double timeout = CXios::recvFieldTimeout;25 const double timeout = 10; // 10 seconds timeout 27 26 28 27 do 29 28 { 30 if (canBeTriggered())31 trigger(timestamp);32 33 29 timer.resume(); 34 30 … … 43 39 44 40 if (!packet) 45 {46 std::map<Time, CDataPacketPtr>::const_iterator it ;47 info(0)<<"Impossible to get the packet with timestamp = " << timestamp<<std::endl<<"Available timestamp are : "<<std::endl ;48 for(it=packets.begin();it!=packets.end();++it) info(0)<<it->first<<" ";49 info(0)<<std::endl ;50 41 ERROR("CConstDataPacketPtr CStoreFilter::getPacket(Time timestamp) const", 51 42 << "Impossible to get the packet with timestamp = " << timestamp); 52 } 43 53 44 return packet; 54 45 } … … 78 69 // The packet is always destroyed by the garbage collector 79 70 // so we register but never unregister 80 gc.register Object(this, data[0]->timestamp);71 gc.registerFilter(this, data[0]->timestamp); 81 72 } 82 73
Note: See TracChangeset
for help on using the changeset viewer.