Google Groups

Integrate tornado into other mainloop

Tom Mar 15, 2012 11:10 PM
Posted in group: Tornado Web Server

i want to integrate the gmainloop (glib) into tornado.My webapp uses dbus calls to communicate with other processes and dbus doesn't like threads.
so i want to do one of the following things:
1) execute gmainloop.iterate() inside of the tornado mainloop and run
tornado.ioloop.IOLoop.instance().start() at the end
2) need an iterate() function from tornado which i can execute inside of the gmainloop. is something like this available?