[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Waits for the thread to terminate and returns the exit status.
Source position: classesh.inc line 1830
WaitFor waits for the thread to terminate, and returns the exit status. Note that when executed in the main thread, this method calls CheckSynchronize, this is done to avoid deadlocks: if the thread is waiting for a synchronize, then the synchronize methods will be executed and then the WaitFor will return.
TThread.Terminated |
|
Indicates whether the Terminatemethod was called by the user. |
|
Waits for the thread to terminate and returns the exit status. |
|
|
Indicates whether the thread should free itself when it stops executing. |
|
|
Synchronizes the thread by executing the method in the main thread. |