Internet Direct (Indy) Version 9.0.1 Beta
TIdThreadMgr.CreateNewThread
Handles creation of new thread instances.

function CreateNewThread: TIdThread; virtual;
Returns
TIdThread - The new thread instance.

Description
CreateNewThread is a virtual TIdThread function in TIdThreadMgr that handles creation of new thread instances.

CreateNewThread uses ThreadClass to create a new thread instance for the thread manager. If ThreadClass is not assigned, an EIdThreadClassNotSpecified exception is raised, and the return value of CreateNewThread will be Nil.

CreateNewThread is used by TIdThreadMgr descendants to provide the new thread instance needed in GetThread.