Compartilhar via


Thread.OnSpinWait Method

Definition

Indicates that the caller is momentarily unable to progress, until the occurrence of one or more actions on the part of other activities.

[Android.Runtime.Register("onSpinWait", "()V", "", ApiSince=33)]
public static void OnSpinWait ();
[<Android.Runtime.Register("onSpinWait", "()V", "", ApiSince=33)>]
static member OnSpinWait : unit -> unit
Attributes

Remarks

Indicates that the caller is momentarily unable to progress, until the occurrence of one or more actions on the part of other activities. By invoking this method within each iteration of a spin-wait loop construct, the calling thread indicates to the runtime that it is busy-waiting. The runtime may take action to improve the performance of invoking spin-wait loop constructions.

Added in 9.

Java documentation for java.lang.Thread.onSpinWait().

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.

Applies to