[Twisted-Python] A problem with threads
Itamar Shtull-Trauring
lists at itamarst.org
Thu Oct 11 11:16:21 EDT 2001
Itamar Shtull-Trauring wrote:
> Threadpool should have a function that lets you run a function in a
> thread and have the result passed to a Deferred object's callbacks. The
> callback functions in the Deferred should be run in the a thread-safe way.
>
> There two alternatives:
A third alternative is to make the threadpool a Delayed. If we don't
introduce a dependency on twisted.internet, then if the main loop is paused
in a select() the callbacks will not be called until the select() times out...
More information about the Twisted-Python
mailing list