Java.Util.Concurrent.Atomic.AtomicIntegerArray.WeakCompareAndSet Method
Atomically sets the element at position i to the given updated value if the current value == the expected value.

Syntax

[Android.Runtime.Register("weakCompareAndSet", "(III)Z", "")]
public bool WeakCompareAndSet (int i, int expect, int update)

Parameters

i
the index
expect
the expected value
update
the new value

Returns

Documentation for this section has not yet been entered.

Remarks

Atomically sets the element at position i to the given updated value if the current value == the expected value.

, so is only rarely an appropriate alternative to compareAndSet.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent.Atomic
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1