Show: Delphi C++
Display Preferences

System.Classes.TThread.SpinWait

From XE2 API Documentation
Jump to: navigation, search

Delphi

class procedure SpinWait(Iterations: Integer); static;

C++

static void __fastcall SpinWait(int Iterations);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Blocks the execution of the thread in a spin-wait loop.

Use SpinWait to generate short time delays without an immediate thread switch.

The input parameter (Iterations) specifies the number of spin loops.

See Also

Personal tools
Previous Versions
Translations