| Modifier and Type | Field and Description |
|---|---|
protected static int |
CACHE_LINE_IN_LONGS |
protected long[] |
cells |
protected static long |
COUNTER_ARRAY_BASE |
protected static long |
ELEMENT_SHIFT |
protected int |
mask |
| Constructor and Description |
|---|
FixedSizeStripedLongCounter(int stripesCount) |
| Modifier and Type | Method and Description |
|---|---|
long |
get() |
long |
getAndReset() |
protected abstract long |
getAndReset(long[] cells,
long offset) |
void |
inc() |
void |
inc(long delta) |
protected abstract void |
inc(long[] cells,
long offset,
long value) |
protected static final int CACHE_LINE_IN_LONGS
protected static final long COUNTER_ARRAY_BASE
protected static final long ELEMENT_SHIFT
protected final long[] cells
protected final int mask
public long getAndReset()
getAndReset in interface Counterprotected abstract void inc(long[] cells,
long offset,
long value)
protected abstract long getAndReset(long[] cells,
long offset)
Copyright © 2013–2024. All rights reserved.