Sign in Join
FPDoc Onlineexperiment

TThread.CheckTerminated function

Member of TThreadpublicIn unit Classes

Check if the current thread has finished executing.

Declaration

pascal
class function CheckTerminated: Boolean; static

Description

TThread.CheckTerminated can be used to check if the current thread has finished executing (i.e. Execute has finished. This can be called from methods in other classes where the current thread instance is not available.

Errors

If the thread was not created by the FPC program, an EThreadExternalException exception is raised.

See also

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