Sign in Join
FPDoc Onlineexperiment

TThread.Sleep procedure

Member of TThreadpublicIn unit Classes

Prevent thread execution.

Declaration

pascal
class procedure Sleep(aMilliseconds: Cardinal); static

Description

Sleep blocks the execution of the thread for aMilliseconds. This function simply calls sleep

In difference with SpinWait, a thread switch may occur during the sleep.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.