Package deltavsoft :: Module rcfproto :: Class ThreadPool |
[frames] | no frames]

# Class ThreadPool

source code

    _object --+
              |
             ThreadPool

Represents a server-side thread pool.

Instance Methods
__init__(self, *args) | source code
SetThreadMinCount(self, *args) Sets the minimum number of threads in the thread pool. | source code
GetThreadMinCount(self) Returns the minimum number of threads in the thread pool. | source code
SetThreadMaxCount(self, *args) Sets the maximum number of threads in the thread pool. | source code
GetThreadMaxCount(self) Returns the maximum number of threads in the thread pool. | source code
SetThreadIdleTimeoutMs(self, *args) Sets the thread idle timeout value, in milliseconds. | source code
GetThreadIdleTimeoutMs(self) Returns the thread idle timeout value, in milliseconds. | source code
SetReserveLastThread(self, *args) If this setting is true, clients will receive an error message right away, if all threads in the thread pool are busy. | source code
GetReserveLastThread(self) | source code
SetThreadName(self, *args) Sets the thread name of the thread pool threads, as visible in a debugger. | source code
GetThreadName(self) Returns the thread name of the thread pool threads. | source code

Method Details

### SetThreadIdleTimeoutMs(self, *args) | source code
Sets the thread idle timeout value, in milliseconds. After a thread has been idle for this time, it will be shut down, unless the thread count is already at the minimum value for the thread pool.

### SetReserveLastThread(self, *args) | source code
If this setting is true, clients will receive an error message right away, if all threads in the thread pool are busy. Otherwise, the client will wait for a thread in the thread pool to become free.