System.Classes.TThread.SpinWait
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.