Topic Path: Symbol Reference > Classes > TIdScheduler Class > TIdScheduler Methods > TerminateYarn Method
ContentsIndexHome
PreviousUpNext
TIdScheduler.TerminateYarn Method

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

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.