TThread.WaitFor function
Waits for the thread to terminate and returns the exit status.
Declaration
function WaitFor: IntegerDescription
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.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
