We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,
Can anyone please tell me how to clear the pending messages from the Mailbox. I dont want to execute some messages in Mailbox for particular task, so wanted to clear this messages without reading the mailbox.
Thanks
Hi, I do this, by simply retrieving all the messages from the mailbox:
// clear mailbox by waiting for all messages while (os_mbx_wait(mbx, (void**)&dummy, 0) != OS_R_TMO);
Thank you Stefan.. its working