System.Classes.TThread.SetReturnValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetReturnValue(Value: Integer); static;

C++

static void __fastcall SetReturnValue(int Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Sets the current thread's return value.

Use SetReturnValue to set the current thread's return value from code that doesn't have direct access to the current thread. Value is the new return value of the thread.

Note: You can only call CheckTerminated and SetReturnValue on an internally created thread. Calling this from an externally created thread will raise an exception.

See Also