[Twisted-Python] Twisted-Python Digest, Vol 90, Issue 16

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Sep 19 14:16:56 EDT 2011

On Sep 19, 2011, at 2:03 PM, Fabian Rothfuchs wrote:

> The second important part was the wakeUp() call, which apparently triggers
> the reactor
> To end all blocking tasks.

For the most part, you have got the right idea now, but this is a BIG flashing red light for me.  wakeUp() shouldn't actually be a public method at all; its _only_ use is as part of the implementation of 'callFromThread'.  You should never, ever call it, and if you do call it, it should appear to do nothing at all.

Are you making use of the reactor from multiple threads?  This is not allowed, and will break horribly, although it can sometimes (briefly) be made to appear to work by calling wakeUp().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110919/b0c17eab/attachment.htm 

More information about the Twisted-Python mailing list