Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft