[Twisted-Python] Chaining deferreds - Twisted+PyGtk

Andrew Bennetts andrew at bemusement.org
Wed Jul 15 20:55:05 MDT 2009


Ɓukasz Rekucki wrote:
[...]
>    Is this a thread related problem ? Am I doing something terribly wrong by
>    calling a deferred from the gtk thread ?

Twisted in general is not thread-safe.  If you need to call Twisted code from a
thread other than the one you started the reactor in, use
reactor.callFromThread.

See also:

    http://twistedmatrix.com/projects/core/documentation/howto/threading.html

-Andrew.





More information about the Twisted-Python mailing list