AtomicLongArray.GetAndAdd(Int32, Int64) Method

Definition

Atomically adds the given value to the element at index i.

[Android.Runtime.Register("getAndAdd", "(IJ)J", "")]
public long GetAndAdd (int i, long delta);
[<Android.Runtime.Register("getAndAdd", "(IJ)J", "")>]
member this.GetAndAdd : int * int64 -> int64

Parameters

i
Int32

the index

delta
Int64

the value to add

Returns

Int64

the previous value

Attributes

Remarks

Java documentation for java.util.concurrent.atomic.AtomicLongArray.getAndAdd(int, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to