Table of Contents

Module: threads | Twisted-0.19.0/twisted/internet/threads.py
--- | ---
Thread dispatching support.
Imported modules |
--- | ---
import defer from twisted.python import threadable, log, failure
Functions |
_initThreading _putResultInDeferred _runMultiple callInThread callMultipleInThread deferToThread shutdown suggestThreadPoolSize
| _initThreading
    _initThreading ()
Called the first time callInThread is called.
| _putResultInDeferred
    _putResultInDeferred (
            deferred,
            f,
            args,
            kwargs,
            )
Run a function and give results to a Deferred.
| _runMultiple
    _runMultiple ( tupleList )
Run a list of functions.
| callInThread
    callInThread (
            f,
            *args,
            *kwargs,
            )
Run a function in a separate thread.
| callMultipleInThread
    callMultipleInThread ( tupleList )
### Run a list of functions in the same thread. tupleList should be a list of (function, argsList, kwargsDict) tuples.
| deferToThread
    deferToThread (
            f,
            *args,
            *kwargs,
            )
Run function in thread and return result as Deferred.
| shutdown
    shutdown ()
Close the thread pool.
| suggestThreadPoolSize
    suggestThreadPoolSize ( size )
Suggest the maximum size of the thread pool.

Table of Contents

This document was automatically generated on Sun Jul 14 19:52:41 2002 by HappyDoc version 2.0