VarHandle.AccessMode.CompareAndExchange Property
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.
The access mode whose access is specified by the corresponding method VarHandle.compareAndExchange
[Android.Runtime.Register("COMPARE_AND_EXCHANGE", ApiSince=33)]
public static Java.Lang.Invoke.VarHandle.AccessMode CompareAndExchange { get; }
[<Android.Runtime.Register("COMPARE_AND_EXCHANGE", ApiSince=33)>]
static member CompareAndExchange : Java.Lang.Invoke.VarHandle.AccessMode
Property Value
The CompareAndExchange(Object[]) mode for an atomic conditional update that returns the observed value, with volatile read and write ordering. Use IsAccessModeSupported(VarHandle+AccessMode) to check support for a handle.
- Attributes
Remarks
The access mode whose access is specified by the corresponding method VarHandle.compareAndExchange
Java reference for java.lang.invoke.VarHandle.AccessMode.COMPARE_AND_EXCHANGE.