[Twisted-Python] Twisted and python threading

Akira 4kir4.1i at gmail.com
Thu Mar 18 11:42:45 EDT 2010

"(*)·´`·.¸.»ÐëÄdMäñ·´`·.¸.»(*)" <freelancer.c at gmail.com> writes:

> I asked on #twisted and someone said that something about my
> application running as daemon and that destroys all threads spawned
> before that, and that I should spawn the thread *after* it's fully
> daemonized.
reactor.callWhenRunning() could be used to spawn the thread. Then
reactor.callFromThread() (from within the thread) could be used to run
code that should run in the reactor's mainloop i.e., twisted related


More information about the Twisted-Python mailing list