The os_mbx_check function determines the number of messages that can still be added into the mailbox identified by the function argument. You can avoid blocking the current task by calling the os_mbx_check function to check for available space in the mailbox before calling the os_mbx_send function to send a message. The os_mbx_check function is in the RL-RTX library. The prototype is defined in rtl.h. |