I have a multi-tasking application running on an MSP430 with TI-RTOS. In my setup there is a main event handler, which pends on a message to process, and other tasks can post messages for it to process. The message queue is a Mailbox.
I'm looking for a way to make a posting task block until its message has been serviced (not only dequeued, but processed). Right now I'm thinking of adding a semaphore handle to each message on which the posting task wants to wait.
Is there a better way of achieving this?
P.S. I would have settled for the Mailbox's 'writerEvent', but the manual says only one task can pend on such an event, and I have a multi-tasking scheme.