Internet Direct (Indy)
|
Initialize the thread pool for the thread-based scheduler.
procedure Init; override;
Init is an overridden procedure in TIdSchedulerOfThreadPool used to initialize the pre-allocated internal pool of threads for the thread-based scheduler.
Init calls the inherited method, and creates the TIdThreadSafeList member used for internal storage of the threads. At runtime, Init uses the value in PoolSize is used to create the specified number of threads in the thread pool by calling NewThread.
Calling Init at design-time has no effect.
Threads allocated to the thread pool are extracted for use in the AcquireYarn method. Thread instances are returned to the thread pool in the ReleaseYarn, TerminateYarn, and TerminateAllYearns methods.
TIdTCPServer.Scheduler
TIdTCPServer.Contexts
TIdTCPServer.ContextClass
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |