Language

VarHandle.SetOpaque(Object[]) Method

Definition

Sets the value of a variable to the newValue, in program order, but with no assurance of memory ordering effects with respect to other threads.

[Android.Runtime.Register("setOpaque", "([Ljava/lang/Object;)V", "", ApiSince=33)]
public void SetOpaque(params Java.Lang.Object[]? args);
[<Android.Runtime.Register("setOpaque", "([Ljava/lang/Object;)V", "", ApiSince=33)>]
member this.SetOpaque : Java.Lang.Object[] -> unit

Parameters

args
Object[]

the signature-polymorphic parameter list of the form (CT1 ct1,..., CTn ctn, T newValue), statically represented using varargs.

Attributes

Remarks

Sets the value of a variable to the newValue, in program order, but with no assurance of memory ordering effects with respect to other threads. The method signature is of the form (CT1 ct1,..., CTn ctn, T newValue)void. The symbolic type descriptor at the call site of setOpaque must match the access mode type that is the result of calling accessModeType(VarHandle.AccessMode.SET_OPAQUE) on this VarHandle.

Java reference for java.lang.invoke.VarHandle.setOpaque.

Applies to