chapter  12
9 Sending a Message to the Front of a Message Queue
Pages 5

If return variable status contains the value TX_SUCCESS, we have successfully prioritized the message queue suspension list.

12.12 Sample System Using a Message Queue for Inter-Thread Communication We have used counting semaphores for mutual exclusion and for event notification in the two previous sample systems. We have also used an event flags group to synchronize the behavior of two threads. In this sample system, we will use a message queue to communicate between two threads. We will modify the previous sample system and replace all references to an event flags group with references to a message queue.