twisted.test.test_threadpool.PoolHelper(object)
class documentationtwisted.test.test_threadpool
(View In Hierarchy)
A PoolHelper
constructs a threadpool.ThreadPool
that doesn't actually use threads, by using the internal interfaces in twisted._threads
.
Instance Variable | performCoordination | a 0-argument callable that will perform one unit of
"coordination" - work involved in delegating work to other
threads - and return True
if it did any work, False
otherwise. |
Instance Variable | workers | the workers which represent the threads within the pool - the workers other
than the coordinator. (type: list
of 2-tuple of (IWorker ,
workPerformer ) where workPerformer is a
0-argument callable like performCoordination .) |
Instance Variable | threadpool | a modified threadpool.ThreadPool
to test. (type: MemoryPool ) |
Method | __init__ | Create a PoolHelper . |
Method | performAllCoordination | Perform all currently scheduled "coordination", which is the work involved in delegating work to other threads. |
Create a PoolHelper
.
Parameters | testCase | a test case attached to this helper. |