TThread.Sleep¶
Prevent thread execution.
Declaration¶
Source position: classesh.inc line 2531
public
class procedure TThread.Sleep(aMilliseconds: Cardinal); static;
Description¶
Sleep blocks the execution of the thread for aMilliseconds. This function simply calls sysutils.sleep
In difference with TThread.SpinWait, a thread switch may occur during the sleep.
See also¶
| Name | Description |
|---|---|
| SysUtils.Sleep | Suspend execution of a program for a certain time. |
| TThread.SpinWait | Prevent thread execution in a spin-wait loop. |