How could I ask Thread B to call B().Method() from inside Thread A's run?

could ildg could.net at gmail.com
Wed Nov 30 12:11:16 CET 2005


I have 2 thead instances,
A and B,
In A's run method, if I call B.Method(), it will be executed in thead A,
but I want B.Method() to be executed in B's thread.
That's to say, I want to tell Thead B to do B's stuff in B's thread,
kinda like PostMessage in win32.
Can I do it in python?
How?
Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051130/57e69a77/attachment.html>


More information about the Python-list mailing list