Internet Direct (Indy)
|
Removes a yarn from the list of active yarns.
procedure ReleaseYarn( AYarn: TIdYarn ); virtual;
Parameters |
Description |
AYarn |
Thread or fiber to be release by the scheduler. |
ReleaseYarn is a procedure used to remove the TIdYarn instance in AYarn from the list of yarns in ActiveYarns. ReleaseYarn is called to remove a yarn from the list when its has execution has been terminated.
AYarn is the thread- or fiber-based executable task for a client connection returned from the AcquireYarn method.
ReleaseYarn calls the TIdThreadSafeList.Remove method using AYarn as an argument.
Descendant classes may perform additional processing in ReleaseYarn related to the specific scheduler type; for instance, TIdSchedulerOfThreadPool may return the thread for the TIdYarnOfThread instance to the pool of available threads in the scheduler.
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. |