Internet Direct (Indy) Version 9.0.2 Beta
|
function GetThread: TIdThread; override;
If there are no existing threads in ThreadPool, GetThread can create a new thread instance using CreateNewThread. The new thread instance will have the StopMode value smSuspend. The thread instance will be added to ActiveThreads and returned as the result of GetThread.
GetThread locks the ThreadPool while extracting a thread for reuse.
A thread instance can be freed using ReleaseThread. A list of threads can be terminated and freed using TerminateThreads.