Internet Direct (Indy)
Home
PreviousUpNext
TIdSchedulerOfThreadDefault.AcquireYarn Method

Creates a thread-based yarn for the scheduler in the server.

Pascal
function AcquireYarn: TIdYarn; override;

TIdYarn - Thread-based yarn created for the scheduler.

AcquireYarn is an overridden TIdYarn function in TIdSchedulerOfThreadDefault that handles getting a new TIdYarn instance for the thread-based scheduler. 

AcquireYarn calls the NewYarn method to create a thread-based yarn which is added to the list of ActiveYarns for the scheduler. When NewYarn is called, the overridden NewThread method is used to get the executable task representing the client context for the scheduler. 

Use StartYarn to begin executing the thread or fiber for the client connection task. 

Use TerminateYarn to stop executing the thread or fiber for the client connection task. 

Use TerminateAllYarns to force termination of all TIdYarn instances in ActiveYarns

Use ReleaseYarn to free a yarn in ActiveYarns that has already been terminated.

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.