[Twisted-Python] multi-threading in twisted

Joachim Boomberschloss boomberschloss at yahoo.com
Mon Mar 21 12:02:47 MST 2005


Hi,

I just want to make sure I understand what the docs
say: can reactor.callFromThread be called from any
thread? and, is it blocking?

In my application I have a thread that comes up with
data to process every once in a while, and I want that
processing to be done in the main loop because it may
involve network communication, so I planned to copy
the data and then call reactor.callFromThread with the
method to do the processing. Does this sound sound?

Thanks,

Joe


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more. 
http://info.mail.yahoo.com/mail_250




More information about the Twisted-Python mailing list