Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does MSGQ_put sometimes result in failure even though the handle to the message queue was previously obtained through a call to MSGQ_locate?

failure message obtained Queue
0
Posted

Why does MSGQ_put sometimes result in failure even though the handle to the message queue was previously obtained through a call to MSGQ_locate?

0

A call to MSGQ_locate() returns a handle to the message queue, based on the current status of the message queue. However, it is possible that the message queue that was located, is closed before MSGQ_put() is used to send a message to it. In this case, it cannot be ensured that the MSGQ_put() call will succeed, since the message queue is no longer valid. To avoid such situations where messages are dropped, the applications on the GPP and DSP can synchronize their cleanup activities.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123