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