語言

AtomicBoolean.CompareAndExchangeAcquire(Boolean, Boolean) 方法

定義

原子設定值為 ,newValue若當前值稱為 em>witness value</em>,== expectedValue且記憶體<效果依 所指定VarHandle#compareAndExchangeAcquire

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

參數

expectedValue
Boolean

期望值

newValue
Boolean

新值

傳回

<EM>見證值</EM>,若成功則與期望值相同

屬性

備註

原子設定值為 ,newValue若當前值稱為 em>witness value</em>,== expectedValue且記憶體<效果依 所指定VarHandle#compareAndExchangeAcquire

新增9。

java.util.concurrent.atomic.AtomicBoolean.compareAndExchangeAcquire(boolean, boolean)Java 檔。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於