Prevent thread execution in a spin-wait loop.
Source position: classesh.inc line 2370
public class procedure TThread.SpinWait( |
aIterations: LongWord |
); |
SpinWait blocks the execution of the thread in a spin-wait loop: it simply executes some simple instructions.
This can be used to create short time delays without an immediate thread switch (e.g. SysUtils.Sleep can cause a thread switch). The input parameter (aIterations) specifies the number of spin loops.
|
Suspend execution of a program for a certain time. |
|
|
Prevent thread execution. |