[python-win32] DispatchWithEvents design question

Tim Roberts timr at probo.com
Tue Jun 5 22:18:29 CEST 2007


Richard Bell wrote:
> Question 3: Does PumpWaitingMessages insure that at MOST one message/event
> is pumped such that reentrancy is not an issue?
>   

I can't answer the other two questions, but I can answer this one,
definitively yes.  A Windows message queue is associated with a single
thread only, and only that thread can dispatch the messages.  It will
not dispatch message #2 until message #1 has completed and returned.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-win32 mailing list