Language

CountedCompleter.CompareAndSetPendingCount(Int32, Int32) メソッド

定義

保留中のカウントを特定のカウントに (アトミックに) 設定するのは、現在指定された期待値を保持している場合のみです。

[Android.Runtime.Register("compareAndSetPendingCount", "(II)Z", "", ApiSince=24)]
public bool CompareAndSetPendingCount(int expected, int count);
[<Android.Runtime.Register("compareAndSetPendingCount", "(II)Z", "", ApiSince=24)>]
member this.CompareAndSetPendingCount : int * int -> bool

パラメーター

expected
Int32

予期される値

count
Int32

新しい値

返品

true 成功した場合

属性

注釈

保留中のカウントを特定のカウントに (アトミックに) 設定するのは、現在指定された期待値を保持している場合のみです。

java.util.concurrent.CountedCompleter.compareAndSetPendingCount(int, int)の Java ドキュメント。

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

適用対象