AtomicIntegerFieldUpdater.set

Sets the field of the given object managed by this updater to the given updated value. This operation is guaranteed to act as a volatile store with respect to subsequent invocations of {@code compareAndSet}.

@param obj An object whose field to set @param newValue the new value

class AtomicIntegerFieldUpdater(T, string fieldName)
void
set
(
T obj
,)
if (
is(typeof(__traits(getMember, T, fieldName)) == shared(int))
)

Meta