com.lmax.disruptor.util
Class PaddedLong

java.lang.Object
  extended by com.lmax.disruptor.util.MutableLong
      extended by com.lmax.disruptor.util.PaddedLong

public final class PaddedLong
extends MutableLong

Cache line padded long variable to be used when false sharing maybe an issue.


Field Summary
 long p1
           
 long p2
           
 long p3
           
 long p4
           
 long p5
           
 long p6
           
 
Constructor Summary
PaddedLong()
          Default constructor
PaddedLong(long initialValue)
          Construct with an initial value.
 
Method Summary
 long sumPaddingToPreventOptimisation()
           
 
Methods inherited from class com.lmax.disruptor.util.MutableLong
get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

p1

public volatile long p1

p2

public volatile long p2

p3

public volatile long p3

p4

public volatile long p4

p5

public volatile long p5

p6

public volatile long p6
Constructor Detail

PaddedLong

public PaddedLong()
Default constructor


PaddedLong

public PaddedLong(long initialValue)
Construct with an initial value.

Parameters:
initialValue - for construction
Method Detail

sumPaddingToPreventOptimisation

public long sumPaddingToPreventOptimisation()


Copyright © 2011 LMAX Ltd. All Rights Reserved.