| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
End the current thread.
Source position: threadh.inc line 141
procedure EndThread(  | 
ExitCode: DWord  | 
);  | 
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.
  | 
Wait for a thread to terminate.  | 
|
  | 
Start a new thread.  |