CountedCompleter.CompareAndSetPendingCount(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets (atomically) the pending count to the given count only if it currently holds the given expected value.
[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
Parameters
- expected
- Int32
the expected value
- count
- Int32
the new value
Returns
true
if successful
- Attributes
Remarks
Sets (atomically) the pending count to the given count only if it currently holds the given expected value.
Java documentation for java.util.concurrent.CountedCompleter.compareAndSetPendingCount(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.