TThread.Sleep

Prevent thread execution

Declaration

Source position: classesh.inc line 1962

public 
  class procedure 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

results matching ""

    No results matching ""