But when thread A does a "SendMessage" to thread C it will not return from
this, causing it to be "blocked". I think this is caused because thread C is
never sheduled (because of the busy thread B). Is this hypothesis correct and
will there be no priority inversion when calling sendmessage?
PS I only seek conformation on this hypothesis i know there are multiple
solutions to pick from.
--
Ginny Caughey
Device Application Development MVP
"R Levels" <RLe...@discussions.microsoft.com> wrote in message
news:9EBDA776-AF8D-4CBA...@microsoft.com...
> I think you're on the right track. Messages are only delivered when the
> receiving thread is alive, and SendMessage blocks until delivery. Would
> PostMessage work for you instead?
>
> --
>
> Ginny Caughey
> Device Application Development MVP
>
>
Thank you for the quick reply. Postmessage is a solution but can work.
Problem is we send a pointer to the string in the message for post message we
must do some extra allocation/delocation.
You may want to consider a method that would allow you to pass the string,
instead of the pointer. Or any publish and subscribe systems. This way,
Thread A doesn't need to wait for Thread C.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
Eurotech Inc.
www.Eurotech.com
"R Levels" <RLe...@discussions.microsoft.com> wrote in message
news:9EBDA776-AF8D-4CBA...@microsoft.com...