This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Mailbox Peek function for RTX

Hi,

I'm writing a socket oriented layer over tcp net using RTX .
I need to redirect socket events to the good task for the good socket. I use together mailboxes and events :
the OR / END triggering possibility of events and the message content of a mailbox to get information on a
particular sockets .
But if the event is not for the waiting socket I need to 'reinject ' the data in the mailbox ....

Could it be possible to add a function in the RTX library to peek a mailbox without getting out the message ?

I think the latest version of freertos has this function .

Parents
  • I don't think peeking would work.

    The same moment the thread tries to go to sleep after deciding that the data in the mailbox wrong, it would be activated again since there is data in the mailbox.

    You should create a data router that picks up the data and distribute it into different mailboxes depending on which thread that should consume the data.

Reply
  • I don't think peeking would work.

    The same moment the thread tries to go to sleep after deciding that the data in the mailbox wrong, it would be activated again since there is data in the mailbox.

    You should create a data router that picks up the data and distribute it into different mailboxes depending on which thread that should consume the data.

Children