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

exarkun at twistedmatrix.com exarkun at twistedmatrix.com
Tue Oct 12 13:23:33 EDT 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

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.


More information about the Twisted-Python mailing list