다음을 통해 공유


AtomicIntegerArray.AddAndGet(Int32, Int32) Method

Definition

Atomically adds the given value to the element at index i, with memory effects as specified by VarHandle#getAndAdd.

[Android.Runtime.Register("addAndGet", "(II)I", "")]
public int AddAndGet (int i, int delta);
[<Android.Runtime.Register("addAndGet", "(II)I", "")>]
member this.AddAndGet : int * int -> int

Parameters

i
Int32

the index

delta
Int32

the value to add

Returns

the updated value

Attributes

Remarks

Atomically adds the given value to the element at index i, with memory effects as specified by VarHandle#getAndAdd.

Java documentation for java.util.concurrent.atomic.AtomicIntegerArray.addAndGet(int, int).

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