AtomicIntegerArray.CompareAndExchangeRelease(Int32, Int32, Int32) メソッド

定義

要素の現在の値 (em ミラーリング監視値/em>> と呼ばれます<) の場合、インデックスinewValue位置の要素を にアトミックに設定し、 == expectedValueで指定されたメモリ効果を使用しますVarHandle#compareAndExchangeRelease。<

[Android.Runtime.Register("compareAndExchangeRelease", "(III)I", "", ApiSince=33)]
public int CompareAndExchangeRelease (int i, int expectedValue, int newValue);
[<Android.Runtime.Register("compareAndExchangeRelease", "(III)I", "", ApiSince=33)>]
member this.CompareAndExchangeRelease : int * int * int -> int

パラメーター

i
Int32

インデックス

expectedValue
Int32

予期される値

newValue
Int32

新しい値

戻り値

ミラーリング監視値。成功した場合は期待値と同じになります

属性

注釈

の Java ドキュメント java.util.concurrent.atomic.AtomicIntegerArray.compareAndExchangeRelease(int, int, int)

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象