[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Wait for a thread to terminate.
Source position: threadh.inc line 126
function WaitForThreadTerminate( |
threadHandle: TThreadID; |
TimeoutMs: LongInt |
):DWord; |
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.
|
End the current thread. |
|
|
Kill a running thread |