Ignore:
Timestamp:
11/28/16 14:02:54 (7 years ago)
Author:
rlacroix
Message:

The workflow is now triggered when using xios_recv_field for fields in read mode received from the servers.

Previously the workflow was triggered upon receiving the data which could cause deadlocks since there are no garanties that clients are receiving data at the same time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/store_filter.cpp

    r997 r1006  
    88  CStoreFilter::CStoreFilter(CGarbageCollector& gc, CContext* context, CGrid* grid) 
    99    : CInputPin(gc, 1) 
     10    , gc(gc) 
    1011    , context(context) 
    1112    , grid(grid) 
     
    2728    do 
    2829    { 
     30      if (canBeTriggered()) 
     31        trigger(timestamp); 
     32 
    2933      timer.resume(); 
    3034 
     
    7478    // The packet is always destroyed by the garbage collector 
    7579    // so we register but never unregister 
    76     gc.registerFilter(this, data[0]->timestamp); 
     80    gc.registerObject(this, data[0]->timestamp); 
    7781  } 
    7882 
Note: See TracChangeset for help on using the changeset viewer.