class documentation

class DeterministicThreadPool(ThreadPool): (source)

View In Hierarchy

Create a deterministic ThreadPool object.

Method __init__ Create a DeterministicThreadPool from a Team.
Instance Variable max Undocumented
Instance Variable min Undocumented
Instance Variable name Undocumented
Instance Variable threads Undocumented
Instance Variable _team Undocumented

Inherited from ThreadPool:

Method __getstate__ Undocumented
Method __setstate__ Undocumented
Method adjustPoolsize Adjust the number of available threads by setting min and max to new values.
Method callInThread Call a callable object in a separate thread.
Method callInThreadWithCallback Call a callable object in a separate thread and call onResult with the return value, or a twisted.python.failure.Failure if the callable raises an exception.
Method dumpStats Dump some plain-text informational messages to the log about the state of this ThreadPool.
Method start Start the threadpool.
Method startAWorker Increase the number of available workers for the thread pool by 1, up to the maximum allowed by ThreadPool.max.
Method stop Shutdown the threads in the threadpool.
Method stopAWorker Decrease the number of available workers by 1, by quitting one as soon as it's idle.
Class Variable currentThread Undocumented
Instance Variable joined Undocumented
Instance Variable started Whether or not the thread pool is currently running.
Property waiters For legacy compatibility purposes, return the number of idle workers as expressed by a list the length of that number.
Property workers For legacy compatibility purposes, return a total number of workers.
Property working For legacy compatibility purposes, return the number of busy workers as expressed by a list the length of that number.
Method _generateName Generate a name for a new pool thread.
Instance Variable _pool A hook for testing.
Property _queue For legacy compatibility purposes, return an object with a qsize method that indicates the amount of work not yet allocated to a worker.