System.EndThread

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EndThread(ExitCode: Integer);

C++

extern DELPHI_PACKAGE void __fastcall EndThread(int ExitCode);

Properties

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

Description

Terminates the execution of a thread.

EndThread terminates the execution of a thread with the specified ExitCode.

Note: On Windows, EndThread calls the ExitThread WinAPI with the specified ExitCode.

See Also