Changeset 317:2aec00e297b1 in finroc_core-java


Ignore:
Timestamp:
20.05.2019 10:50:47 (5 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
17.03
Phase:
public
Message:

Makes GetUnusedBuffer() methods for port data always reset timestamp (to fully avoid accidental reuse of timestamps in recycled buffers)

Location:
port
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • port/cc/CCPortDataBufferPool.java

    r220 r317  
    7474        CCPortDataManagerTL pc = getUnused(); 
    7575        if (pc != null) { 
     76            pc.getTimestamp().set(0); 
    7677            return pc; 
    7778        } 
     
    8586        CCPortDataManager pc = interThreads.getUnused(); 
    8687        if (pc != null) { 
     88            pc.getTimestamp().set(0); 
    8789            return pc; 
    8890        } 
  • port/std/PortDataBufferPool.java

    r217 r317  
    6767        if (pc != null) { 
    6868            pc.setUnused(true); 
     69            pc.getTimestamp().set(0); 
    6970            return pc; 
    7071        } 
Note: See TracChangeset for help on using the changeset viewer.