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().
-glyph
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python