help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

EndThread

End the current thread.

Declaration

Source position: line 0

procedure EndThread(

  ExitCode: DWord

);

procedure EndThread;

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

WaitForThreadTerminate

  

Wait for a thread to terminate.

BeginThread

  

Start a new thread.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505