Skip to content

TThread.SetReturnValue

Set return value of a thread.

Declaration

Source position: classesh.inc line 2513

public 
class procedure TThread.SetReturnValue(aValue: Integer);  static;

Description

TThread.SetReturnValue sets the return value of an internally created thread.

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.CheckTerminated Check if the current thread has finished executing.