Internet Direct (Indy) Version 9.0.2 Beta
TIdThreadMgr.TerminateThreads
Closes, releases, and frees threads in a list.

procedure TerminateThreads(TerminateWaitTime: integer); virtual;
Parameters
TerminateWaitTime: integer
List of threads to terminate.

Description
TerminateThreads is a procedure that forces a list of TIdThread instances to close their socket connections, releases the threads, and remove the threads from the active thread list.

If the thread list contains TIdPeerThread instances, TerminateThreads will call TIdPeerThread.Connection.Disconnect to close the socket connection.

For each TIdThread instance in the thread list, TerminateThreads will call ReleaseThread.

The terminated thread instance will be removed from the Thread list.