AtomicBoolean.CompareAndExchangeRelease(Boolean, Boolean) メソッド

定義

現在の値が em ミラーリング監視値newValue/em>> と呼ばれ、 で指定されたメモリ効果を<持つ場合、== expectedValue値を にアトミックにVarHandle#compareAndExchangeRelease設定<します。

[Android.Runtime.Register("compareAndExchangeRelease", "(ZZ)Z", "", ApiSince=33)]
public bool CompareAndExchangeRelease (bool expectedValue, bool newValue);
[<Android.Runtime.Register("compareAndExchangeRelease", "(ZZ)Z", "", ApiSince=33)>]
member this.CompareAndExchangeRelease : bool * bool -> bool

パラメーター

expectedValue
Boolean

予期される値

newValue
Boolean

新しい値

戻り値

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

属性

注釈

現在の値が em ミラーリング監視値newValue/em>> と呼ばれ、 で指定されたメモリ効果を<持つ場合、== expectedValue値を にアトミックにVarHandle#compareAndExchangeRelease設定<します。

9 に追加されました。

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

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

適用対象