5 Jan
2010
5 Jan
'10
10:16 p.m.
Hi Devraj,
Is it possible to ask the Twisted application to run in a sea prate thread?
Yes it is possible. Simply start the reactor in a thread, but run it as: reactor.run(installSignalHandlers=False) If you do it this way you're going to have to handle signals yourself. You're going to have to be very careful about calling code in the Twisted thread from other threads as Twisted isn't threadsafe. To do this properly take a look at reactor.callFromThread. Cheers, Reza -- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun