 | Discussion Forum |  |
|
|
Clearing messages in MailboxNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Neha D Posted 2-Sep-2010 12:20 GMT Toolset ARM |  Clearing messages in Mailbox Neha D 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 | | Read-Only Author Stefan Hartwig Posted 6-Sep-2010 06:23 GMT Toolset ARM |  RE: Clearing messages in Mailbox Stefan Hartwig 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);
| | Read-Only Author Neha D Posted 6-Sep-2010 14:38 GMT Toolset ARM |  RE: Clearing messages in Mailbox Neha D Thank you Stefan.. its working | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|