This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

osMessageCreate() Question

Hello everyone,

I tried to find the use for the ThreadId parameter and I dont find it anywhere. Why we would need to pass a ThreadId to the message queue?

Let's say I am using osWaitForever in my thread calling osMessageGet() and I want the kill the thread how to I unblock osMessageGet()? Is it where the parameter mentionned above come into play?

Regards,

Parents
  • Yes I knew that but I was looking a way to block the message pump when not needed to save the context switching of threads. This is part of a critical path in my application. Finally, I ended up add a flag in my message structure passed in parameter. I set this flag ON and send a message to this box for killing the message pump thread.

    Thank you for your response .

Reply
  • Yes I knew that but I was looking a way to block the message pump when not needed to save the context switching of threads. This is part of a critical path in my application. Finally, I ended up add a flag in my message structure passed in parameter. I set this flag ON and send a message to this box for killing the message pump thread.

    Thank you for your response .

Children
No data