Table of Contents

Module: threads Twisted-0.18.0/twisted/internet/threads.py

Thread dispatching support.

Imported modules   
import defer
from twisted.python import threadable, log, failure
Functions   
_putResultInDeferred
_runMultiple
callInThread
callMultipleInThread
deferToThread
initThreading
shutdown
suggestThreadPoolSize
  _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.

  initThreading 
initThreading ()

Called the first time callInThread is called.

  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 Sat Jun 1 22:28:47 2002 by HappyDoc version 2.0