Package kilim.concurrent
Class MPSCQueueColdFields<E>
java.lang.Object
kilim.concurrent.MPSCQueueL0Pad
kilim.concurrent.MPSCQueueColdFields<E>
- Direct Known Subclasses:
MPSCQueueL1Pad
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final E[]protected static final intprotected final intprotected final longprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intfindNextPositivePowerOfTwo(int value) static booleanisPowerOf2(int value)
-
Field Details
-
BUFFER_PAD
protected static final int BUFFER_PAD- See Also:
-
SPARSE_SHIFT
protected static final int SPARSE_SHIFT -
capacity
protected final int capacity -
mask
protected final long mask -
buffer
-
-
Constructor Details
-
MPSCQueueColdFields
public MPSCQueueColdFields(int capacity)
-
-
Method Details
-
findNextPositivePowerOfTwo
public static int findNextPositivePowerOfTwo(int value) -
isPowerOf2
public static boolean isPowerOf2(int value)
-