TThread.CheckTerminated
Check if the current thread has finished executing.
Declaration
Source position: classesh.inc line 1954
public
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
Name | Description |
---|---|
EThreadExternalException | Exception raised when an invalid operation is attempted on an external thread |
TThread.SetReturnValue | Set return value of a thread |