[Twisted-Python] Creating a COM object in a thread
ddwiggins at advpubtech.com
Tue Jun 29 15:13:32 EDT 2010
Thanks for the suggestions. The documentation of win32eventreactor
sounds kind of scary, but still probably the best base to work from.
I did some searching, and found Thomas Heller's win32guireactor at
http://osdir.com/ml/python.twisted/2003-02/msg00190.html. I'm still
naive enough about reactors not to be able to compare it to
win32eventreactor, except to note that it does run PumpWaitingMessages,
which is what Mark thinks is needed. (This was posted in 2003; as far
as I can tell, nothing further has been done with it.)
Any advice on this? I'm willing to spend some time to give it a try,
and to post my experiences, if it'll help advance the "state of the art"
of win32 reactors.
On 6/28/2010 6:17 PM, Itamar Turner-Trauring wrote:
> On Mon, 2010-06-28 at 17:43 -0700, Don Dwiggins wrote:
>> What this probably means in practice is that twisted needs to use a
>> reactor which calls MsgWaitForMultipleObjects() and runs a message loop
>> when the function detects a new message is in the queue. I'm not sure
>> if there is an existing reactor which does this."
> win32eventreactor uses WaitForMultipleObjects, so could probably be
> modified quite simply to support this. It's also vaguely possible you
> could use the more scalable IOCP reactor, but someone with more win32
> knowledge than I should comment on that.
Advanced Publishing Technology
More information about the Twisted-Python