Discussion Forum

Clearing messages in Mailbox

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Neha D
Posted
2-Sep-2010 12:20 GMT
Toolset
ARM
New! Clearing messages in Mailbox

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
New! RE: Clearing messages in Mailbox

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
New! RE: Clearing messages in Mailbox

Thank you Stefan.. its working

Next Thread | Thread List | Previous Thread Start a Thread | Settings