TThread.SetReturnValue

Set return value of a thread

Declaration

Source position: classesh.inc line 1953

public 
  class procedure 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.