Ignore:
Timestamp:
01/25/17 16:25:17 (7 years ago)
Author:
yushan
Message:

initialize the branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/filter/store_filter.cpp

    r1029 r1037  
    88  CStoreFilter::CStoreFilter(CGarbageCollector& gc, CContext* context, CGrid* grid) 
    99    : CInputPin(gc, 1) 
    10     , gc(gc) 
    1110    , context(context) 
    1211    , grid(grid) 
     
    2423    CTimer timer("CStoreFilter::getPacket"); 
    2524    CConstDataPacketPtr packet; 
    26     const double timeout = CXios::recvFieldTimeout; 
     25    const double timeout = 10; // 10 seconds timeout 
    2726 
    2827    do 
    2928    { 
    30       if (canBeTriggered()) 
    31         trigger(timestamp); 
    32  
    3329      timer.resume(); 
    3430 
     
    4339 
    4440    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 ; 
    5041      ERROR("CConstDataPacketPtr CStoreFilter::getPacket(Time timestamp) const", 
    5142            << "Impossible to get the packet with timestamp = " << timestamp); 
    52     } 
     43 
    5344    return packet; 
    5445  } 
     
    7869    // The packet is always destroyed by the garbage collector 
    7970    // so we register but never unregister 
    80     gc.registerObject(this, data[0]->timestamp); 
     71    gc.registerFilter(this, data[0]->timestamp); 
    8172  } 
    8273 
Note: See TracChangeset for help on using the changeset viewer.