>
>> At this stage the main problem I see is having transport.write will
>> have data transmitted immediately when called from another thread.
>
> When calling into Twisted from non-Twisted threads, use 
> reactor.callFromThread.
> See 
> <http://twistedmatrix.com/projects/core/documentation/howto/threading.html>.

I actually saw this reactor.callFromThread but weren't sure whether it
is a singelton i.e. I can use it in another module by simply importing
reactor and calling it and it will affect the same I called .run on in
another module. I checked it right now and it works.

thank you,
 - Tzury

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

Reply via email to