Sign in Join
FPDoc Onlineexperiment

EndThread procedure

In unit System

End the current thread.

Declaration

pascal
procedure EndThread(ExitCode: DWord)

Description

EndThread ends the current thread. If ExitCode is supplied, it is returned as the exit code for the thread to a function waiting for the thread to terminate ( WaitForThreadTerminate). If it is omitted, zero is used.

This function does not return.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.