Skip to content

Commit

Permalink
use setOpaque/getOpaque i.e fixing merge
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <[email protected]>
  • Loading branch information
olamy committed Dec 11, 2020
1 parent d35e49d commit 37c040e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public ByteBuffer acquire()

public void release(ByteBuffer buffer)
{
_lastUpdate.lazySet(System.nanoTime());
_lastUpdate.setOpaque(System.nanoTime());
BufferUtil.clear(buffer);
if (_size == null)
queueOffer(buffer);
Expand Down Expand Up @@ -234,7 +234,7 @@ int size()

long getLastUpdate()
{
return _lastUpdate.get();
return _lastUpdate.getOpaque();
}

@Override
Expand Down

0 comments on commit 37c040e

Please sign in to comment.