Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TThread.CheckTerminated

Check if the current thread has finished executing.

Declaration

Source position: classesh.inc line 2355

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: Dec 22 2024