Export (0) Print
Expand All

Thread.SpinWait Method

Causes a thread to wait the number of times defined by the iterations parameter.

[Visual Basic]
Public Shared Sub SpinWait( _
   ByVal iterations As Integer _
)
[C#]
public static void SpinWait(
 int iterations
);
[C++]
public: static void SpinWait(
 int iterations
);
[JScript]
public static function SpinWait(
   iterations : int
);

Parameters

iterations
A 32-bit signed integer that defines how long a thread is to wait.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Thread Class | Thread Members | System.Threading Namespace

Show:
© 2015 Microsoft