RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerSocketThread.ClearThreadPool Method

Terminates all of the threads in the thread pool.

Pascal
procedure ClearThreadPool;
C++
__fastcall ClearThreadPool();

The thread pool is a list of client socket threads that are available to handle connection requests. This list is kept to allow reuse of old threads and improve performance. It is sometimes useful to destroy all of the thread object instances in this list. 

Use ClearThreadPool to terminate all of the threads in the thread pool list. Any suspended thread in the pool is resumed so that termination can proceed. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!