Internet Direct (Indy)
Home
PreviousUpNext
TIdSchedulerOfThread Class

Implements a thread-based scheduler for client connections to a server.

Pascal
TIdSchedulerOfThread = class(TIdScheduler);

TIdSchedulerOfThread is a TIdScheduler descendant that implements a thread-based scheduler as used in TIdTCPServer and descendant classes. 

TIdScheduler introduced an abstract representation for executable tasks for client connections to a multi-threaded TCP server. This abstraction, called a Yarn, allows the use either threads or fibers for execution of client connections to the server. Each client connection, or Yarn, represents a task that is managed by the Scheduler for the server. 

TIdSchedulerOfThread extends the capabilities of the TIdScheduler ancestor class by implementing methods that handle the executable threads for yarns managed by the scheduler. 

During initialization of the component, TIdSchedulerOfThread assigns the default values for the ThreadPriority and MaxThreads properties. 

Freeing the scheduler instance forces all thread-based yarns in ActiveYarns to be terminated prior to releasing resources allocated to the scheduler.

TIdScheduler 

TIdSchedulerOfThreadDefault 

TIdSchedulerOfThreadPool 

TIdSchedulerOfFiber 

TIdYarnOfThread 

TIdContext 

TIdTask 

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.