
Oct. 28, 2007
2:50 p.m.
On 10/28/07, Rutt, Benjamin <Benjamin.Rutt@gs.com> wrote:
So using deferToThread, inside my thread, when I have a result to write to the client, I call callFromThread to schedule a write in the reactor loop.
No, if you're using deferToThread, the way you give the result back to the mainloop is by returning the value from the function. Then that result gets fired on the Deferred that deferToThread created. -- Christopher Armstrong International Man of Twistery http://radix.twistedmatrix.com/ http://twistedmatrix.com/ http://canonical.com/