Internet Direct (Indy) Version 9.0.1 Beta
|
property ActiveThreads: TThreadList;
TIdThreadMgr does maintain the list of active threads. Descendants of TIdThreadMgr must implement the virtual abstract methods GetThread and ReleaseThread, and maintain ActiveThreads during these operations. The thread manager should use ReleaseThread to protect resources while maintaining the list of active threads.
Use TerminateThreads to notify the ActiveThreads list that all thread instances should close their socket connections, release the thread with ReleaseThread, and remove the thread from ActiveThreads.