final class UnsafeAtomicReferenceFieldUpdater<U,M>
extends java.util.concurrent.atomic.AtomicReferenceFieldUpdater<U,M>
Modifier and Type | Field and Description |
---|---|
private long |
offset |
private sun.misc.Unsafe |
unsafe |
Constructor and Description |
---|
UnsafeAtomicReferenceFieldUpdater(sun.misc.Unsafe unsafe,
java.lang.Class<? super U> tClass,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(U obj,
M expect,
M update) |
M |
get(U obj) |
void |
lazySet(U obj,
M newValue) |
void |
set(U obj,
M newValue) |
boolean |
weakCompareAndSet(U obj,
M expect,
M update) |
UnsafeAtomicReferenceFieldUpdater(sun.misc.Unsafe unsafe, java.lang.Class<? super U> tClass, java.lang.String fieldName) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException