Package buildbot :: Package db :: Module pool :: Class DBThreadPool
[frames] | no frames]

Class DBThreadPool

source code

twisted.python.threadpool.ThreadPool --+
                                       |
                                      DBThreadPool

Nested Classes

Inherited from twisted.python.threadpool.ThreadPool: threadFactory

Instance Methods
 
__init__(self, engine, verbose=False)
Create a new threadpool.
source code
 
shutdown(self)
Manually stop the pool.
source code
 
do_081(self, callable, *args, **kwargs) source code
 
do_with_engine_081(self, callable, *args, **kwargs) source code
 
do(self, callable, *args, **kwargs) source code
 
do_with_engine(self, callable, *args, **kwargs) source code
 
detect_bug1810(self) source code
 
get_sqlite_version(self) source code

Inherited from twisted.python.threadpool.ThreadPool: __getstate__, __setstate__, adjustPoolsize, callInThread, callInThreadWithCallback, dispatch, dispatchWithCallback, dumpStats, start, startAWorker, stop, stopAWorker

Static Methods

Inherited from twisted.python.threadpool.ThreadPool: currentThread

Class Variables
  running = False
  BACKOFF_START = 1.0
  BACKOFF_MULT = 1.05
  MAX_OPERATIONALERROR_TIME = 86400

Inherited from twisted.python.threadpool.ThreadPool: joined, max, min, name, started, workers

Method Details

__init__(self, engine, verbose=False)
(Constructor)

source code 

Create a new threadpool.

Parameters:
  • minthreads - minimum number of threads in the pool
  • maxthreads - maximum number of threads in the pool
Overrides: twisted.python.threadpool.ThreadPool.__init__
(inherited documentation)

shutdown(self)

source code 

Manually stop the pool. This is only necessary from tests, as the pool will stop itself when the reactor stops under normal circumstances.