RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerClientThread.KeepInCache Property

Determines whether the thread should be kept in the thread cache maintained by ServerSocket.

Pascal
property KeepInCache: Boolean;
C++
__property Boolean KeepInCache;

The TServerWinSocket that spawns server client threads for its connections to client sockets maintains a cache of server client threads for reuse. As server client threads are activated, the TServerWinSocket object sets the KeepInCache property to indicate whether the thread will fit in the thread cache. 

When KeepInCache is true, FreeOnTerminate is set to false before the thread terminates, and the thread is left in the thread cache. When KeepInCache is false, the thread is freed when execution terminates. 

 

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