Changeset 140:aca37ccb431b in finroc_plugins_data_ports


Ignore:
Timestamp:
19.07.2019 11:44:00 (2 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
14.08
Phase:
public
Message:

Makes tGenericPort::GetUnusedBuffer() always reset buffer timestamp (to avoid accidental reuse of timestamps of recycled buffers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tGenericPort.h

    r134 r140  
    239239  inline tPortDataPointer<rrlib::rtti::tGenericObject> GetUnusedBuffer() 
    240240  { 
    241     return implementation->GetUnusedBuffer(*GetWrapped()); 
     241    auto result = implementation->GetUnusedBuffer(*GetWrapped()); 
     242    result.SetTimestamp(rrlib::time::cNO_TIME); 
     243    return result; 
    242244  } 
    243245 
Note: See TracChangeset for help on using the changeset viewer.