[Twisted-Python] when to use callInThread?

2011-05-07 Thread Dfgqq Dfgqq
Hi all I have a function like: def longQuery(xxx) this function will be invoked simultaneously (it means multiple thread environment) and this function may take a while to complete. so my question is whether i should use reactor.callInThread to take benefit from non blocking or use deferred

Re: [Twisted-Python] when to use callInThread?

2011-05-07 Thread Laurens Van Houtven
Why is it invoked in a multithread environment? You can use deferToThread, which gives you a deferred which runs in a thread. cheers lvh ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/tw

Re: [Twisted-Python] when to use callInThread?

2011-05-07 Thread Marco Giusti
On Sat, May 07, 2011 at 04:49:22PM +0800, Dfgqq Dfgqq wrote: > Hi all > >I have a function like: > > def longQuery(xxx) > > this function will be invoked simultaneously (it means multiple thread > environment) and this function may take a while to complete. > > so my question is whether i s

Re: [Twisted-Python] when to use callInThread?

2011-05-07 Thread Dfgqq Dfgqq
Hi Ivh I just finished the reading of deterToThread Part. I think it is what i need. Thank you anyway.. Regards gelin yan On Sat, May 7, 2011 at 5:49 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > Why is it invoked in a multithread environment? You can use deferToThread, > which gives you a

[Twisted-Python] Boston Mini-Sprint: May Edition

2011-05-07 Thread Tenth
I've been lax in posting them on [Twisted-Python] lately, but the more-or-less-monthly Boston area sprints will continue on Sunday, May 22nd at my place in Somerville, MA. An Evite has gone out to the usual suspects, but if you'd like to be added (or removed) from the invitations, just let me know.

[Twisted-Python] Weekly Bug Summary

2011-05-07 Thread exarkun
Bug summary __ Summary for 2011-05-01 through 2011-05-08 Opened Closed Total Change Enhancements: 11 4725 +7 Defects: 3 1521 +2 Tasks: 0 0 7