RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.EndThread Function

Terminates the execution of a thread.

Pascal
procedure EndThread(ExitCode: Integer);
C++
EndThread(int ExitCode);

System

EndThread terminates execution of a thread with the specified ExitCode.

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

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!