thread Terminated property
Return to Introduction  Previous page  Next page
Applies to
auThread component.  

Declaration
property Terminated: Boolean;  

Description
The Terminated property Indicates whether the thread has been asked to terminate.  
 
The thread's Execute method and any methods that Execute calls (in OnExecute event handler) 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 OnExecute code. Using Terminate is recommended over the TerminateThread Win32 API call.  

See also
Execute and Terminate methods;  
OnExecute event.