Ge van Geldorp wrote:
From: Gunnar
Dalsnes
I think the whole co_IntPostOrSendMessage function is wrong
and crazy.
Who made it? Sending and posting messages are completely
different things.
I think something like co_IntSendMessageTimeout should be
used instead, but i dont think its implemented yet.
Co_IntSendMessageTimeout is indeed implemented. And yes, testing shows that
under Windows these messages are either sent directly or not sent at all (if
the receiving thread is blocked), no PostMessage() going on at all.
Gé van Geldorp.
On Windows there is a mechanism called event queue. You can queue a
special message into message queue which acts as an event (Destroy
Window, Show Window, Set Window Pos, Activate, Deactivate, ...) and is
used for handling such cases as doing SetWindowPos on another thread's
window ...
- Filip