Show: Delphi C++
Display Preferences

System.Classes.TThread.Terminated

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Terminated: Boolean read FTerminated;

C++

__property bool Terminated = {read=FTerminated, nodefault};

Properties

Type Visibility Source Unit Parent
property protected
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Indicates whether the thread has been asked to terminate.

The thread's Execute method and any methods that Execute calls should check Terminated periodically and exit when it's True. The Terminate method sets the Terminated property to True.

The Terminate method is the polite way to abort the execution of a thread, but it requires cooperation from the thread's Execute code. Using Terminate is recommended over the TerminateThread MSDN Win32 API call.

Tip: Use CheckTerminated to read Terminated from outside the thread class.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance