Internet Direct (Indy)
Home
PreviousUpNext
TIdScheduler.TerminateYarn Method

Specifies the interface used to stop execution of a thread or fiber in the scheduler.

Pascal
procedure TerminateYarn(
    AYarn: TIdYarn
); virtual; abstract;
Parameters 
Description 
AYarn 
Thread or fiber to be stopped. 

TerminateYarn is an abstract virtual method in TIdScheduler that specifies the interface used to stop execution of a specific thread or fiber allocated to the ActiveYarns for the scheduler. 

TerminateYarn must be implemented in decendant classes to perform the additional tasks necessary to halt execution of the associated task for the TIdYarn instance used in the scheduler. 

AYarn is the TIdYarn instance returned by AcquireYarn to be terminated. 

TerminateYarn is used in the TerminateAllYarns method.

ActiveYarns 

AcquireYarn 

TerminateAllYarns 

TIdSchedulerOfThread.TerminateYarn 

TIdSchedulerOfFiber.TerminateYarn 

TIdYarnOfThread 

TIdYarnOfFiber

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.