Topic Path: Symbol Reference > Classes > TIdThread Class > TIdThread Methods > TerminateAndWaitFor Method
ContentsIndexHome
PreviousUpNext
TIdThread.TerminateAndWaitFor Method

Signals a thread to terminate and waits for completion of the Execute method.

procedure TerminateAndWaitFor; virtual;

TerminateAndWaitFor is a procedure used to terminate and wait for completion of the executing thread. 

When FreeOnTerminate contains True, an EIdThreadTerminateAndWaitFor exception will be raised. 

TerminateAndWaitFor calls the Terminate method, and calls Start to allow the thread to complete execition. TerminateAndWaitFor calls WaitFor to delay until completion of the thread.

Exceptions 
Description 
Raised with the message RSThreadTerminateAndWaitFor
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.