[Twisted-Python] Missing self.wakeUp() in epoll reactor's callLater

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Oct 12 11:23:33 MDT 2010


On 05:14 pm, fenimore at gmail.com wrote:
>I noticed that callLater in the epollReactor does not actually wake up
>the reactor; the code for the threaded select reactor, however, does
>do this via a call to self.wakeUp.  It seems like epoll reactor should
>be patched so that call later ends with self.wakeUp - does this seem
>correct?

Nope.  wakeUp is only for waking up the reactor from another thread. 
callLater is not allowed to be called from another thread.

Lots of weird threaded stuff is going on in the threadedselect code 
which means extra wakeUp calls are necessary at various places, but none 
of the other reactors need it.

Jean-Paul




More information about the Twisted-Python mailing list