[Twisted-Python] Re: Taking a look at pending deferToThread actions
abierbaum at gmail.com
Thu Jun 7 22:25:30 EDT 2007
On 6/6/07, Itamar Shtull-Trauring <itamar at itamarst.org> wrote:
> On Tue, 2007-06-05 at 11:02 -0500, Allen Bierbaum wrote:
> > - Has anyone extended threadpool to allow code to remove queued
> > functions from the pending queue?
> How about just having the functions themselves check to see if they
> really should run their intended task? (Being careful about
> thread-safety, of course).
Thanks for the idea. I will give it a try.
> Why are you using threads, btw?
I am using threads because the calls I am making are into a
non-blocking library. I may see about rewriting it in the future to
be more twisted-friendly, but for now I have to live with it.
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
More information about the Twisted-Python