TThread.Terminate

Signals the thread it should terminate.

Declaration

Source position: classesh.inc line 1979

public 
  procedure 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.FreeOnTerminate Indicates whether the thread should free itself when it stops executing.
OnTerminate Event called when the thread terminates.
TThread.Terminated Indicates whether the Terminate method was called by the user.
TThread.WaitFor Waits for the thread to terminate and returns the exit status.