AtomicIntegerFieldUpdater.getAndAdd

Atomically adds the given value to the current value of the field of the given object managed by this updater.

@param obj An object whose field to get and set @param delta the value to add @return the previous value

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

Meta