[Twisted-Python] Re: Minor question wrt threading pools

Mike C. Fletcher mcfletch at rogers.com
Fri Apr 16 23:32:13 EDT 2004


Argh, as always, discovered the solution seconds after sending the email:

ThreadPool is available as an (optional) attribute of reactor 
"threadpool".  Calling stop() allows the exit.  Still don't know how to 
make the threads daemon by default, but that's not an issue at the moment.

Sorry for the wasted bandwidth,
Mike

Mike C. Fletcher wrote:
...

>    * How to start threads in the threading pool as daemon threads (i.e.
>      will exit when all non-daemon threads exit)
>    * How to force an exit of all threads
>          o How to access the currently active thread-pool (I assume the
>            documented ThreadPool.stop method is what needs to be
>            called, but how to get the ThreadPool object isn't
>            documented AFAICS).

...





More information about the Twisted-Python mailing list