Internet Direct (Indy)
Home
PreviousUpNext
TIdSchedulerOfThreadPool.TerminateAllYarns Method

Stops execution of all threads-based yarns allocated for the scheduler.

Pascal
procedure TerminateAllYarns; override;

TerminateAllYarns is an overridden method in TIdSchedulerOfThreadPool. TerminateAllYarns is the method used to stop execution of all TIdYarnOfThread instances allocated in the ActiveYarns property for the scheduler. 

TerminateAllYarns calls the inherited method to halt scheduling for all ActiveYarns

In addition, TerminateAllYarns will Terminate (rather than Suspend) and Free any thread instances allocated to the internal thread pool for thread-based scheduler.

ActiveYarns 

TIdYarn 

TIdYarnOfThread 

TIdThreadWithTask 

TIdThreadSafeList.LockList 

TIdThreadSafeList.UnlockList

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.