Classes.TThread.Terminated

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Classes.pas

	property Terminated: Boolean read FTerminated;


Unit: Classes

Type: property

Visibility: protected

Member Of: TThread

C++ Information

From Classes.hpp

	__property bool Terminated = {read=FTerminated};


Unit: Classes

Type: property

Visibility: protected

Member Of: 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 Win32 API call.

See Also

Code Samples


Personal tools
Translations
Newest Version