|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lmax.disruptor.util.MutableLong
com.lmax.disruptor.util.PaddedLong
public final class PaddedLong
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 |
|---|
public volatile long p1
public volatile long p2
public volatile long p3
public volatile long p4
public volatile long p5
public volatile long p6
| Constructor Detail |
|---|
public PaddedLong()
public PaddedLong(long initialValue)
initialValue - for construction| Method Detail |
|---|
public long sumPaddingToPreventOptimisation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||