System.Win.ScktComp.TServerClientThread.KeepInCache

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property KeepInCache: Boolean read FKeepInCache write FKeepInCache;

C++

__property bool KeepInCache = {read=FKeepInCache, write=FKeepInCache, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerClientThread

Description

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

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.

See Also