Skip to content

TThread.Terminate

Signals the thread it should terminate.

Declaration

Source position: classesh.inc line 2549

public 
procedure TThread.Terminate;

Description

Terminate sets the TThread.Terminated flag. It does not in any way attempt to terminate the thread in any other way, this just signals the thread that it should stop executing at the earliest possible moment.

See also

Name Description
TThread.Terminated Indicates whether the Terminatemethod was called by the user.
TThread.WaitFor Waits for the thread to terminate and returns the exit status.
TThread.FreeOnTerminate Indicates whether the thread should free itself when it stops executing.
OnTerminate Event called when the thread terminates.