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 Trueif it did any work,Falseotherwise. | 
| Instance Variable | workers | the workers which represent the threads within the pool - the workers other
than the coordinator. (type: listof 2-tuple of (IWorker,workPerformer) whereworkPerformeris a 
0-argument callable likeperformCoordination.) | 
| Instance Variable | threadpool | a modified threadpool.ThreadPoolto 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. |