Hi,

2011/5/16 gelin yan <[email protected]>:
>    I notice the core doc mentions that "Most code in Twisted is not
> thread-safe. For example, writing data to a transport from a protocol is not
> thread-safe. "
>
>    I want to know whether there is a way to know what methods are thread
> safe besides of reading source codes? Or I use
> reacator.callFromThread for all related methods from threads other than
> reactor thread?

Yes. Unless it is clearly mentioned in a function's documentation,
reactor.callFromThread is the only function that is safe to call from
any thread.

-- 
Amaury Forgeot d'Arc

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to