[Twisted-Python] threadedselectreactor and twistd

Bob Ippolito bob at redivi.com
Sun Sep 11 13:28:10 MDT 2005


On Sep 11, 2005, at 11:06 AM, Antony Kummel wrote:

> Just wondering how and if to integrate
> threadedselectreactor into twistd. I'm thinking to use
> it for a GUI application which is also a server (and a
> client), so I think using mktap/twistd makes sense,
> but there is the matter of threadedselectreactor not
> being supported.
>
> What I've been thinking is for threadedselectreactor
> to have another method, or it could be combined with
> interleave, that accepts a callable that makes the
> main loop run. It could also be a special reactor for,
> say, wxPython, that accepts a wxApp (and interleaves
> automatically), and calls its MainLoop method inside
> reactor.run(). This would make it trivial to use with
> twisted.application. It would simple require the
> service to let the reactor know about its
> wxApp/whatever.
>
> Any thoughts?

I don't think that's really going to work without a bunch of  
refactoring of twistd and special-cases for each environment -- which  
is the problem that threadedselectreactor solves in the first place.

-bob





More information about the Twisted-Python mailing list