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



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

WaitForThreadTerminate

Wait for a thread to terminate.

Declaration

Source position: threadh.inc line 135

function WaitForThreadTerminate(

  threadHandle: TThreadID;

  TimeoutMs: LongInt

):DWord;

Description

WaitForThreadTerminate waits for a thread to finish it's execution. The thread is identified by it's handle or ID threadHandle. If the thread does not exit within TimeoutMs milliseconds, the function will return with an error value.

The function returns the exit code of the thread.

See also

EndThread

  

End the current thread.

KillThread

  

Kill a running thread

Notes

 No notes exist for this page yet. 





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