[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TThread.CheckTerminated

Check if the current thread has finished executing.

Declaration

Source position: classesh.inc line 1657

public class function TThread.CheckTerminated: Boolean;

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

EThreadExternalException

  

Exception raised when an invalid operation is attempted on an external thread

TThread.SetReturnValue

  

Set return value of a thread


Documentation generated on: Nov 16 2015