The title pretty much says it all. I have a system with at least two tasks. Task A calls xMessageBufferReceive with xTicksToWait set to portMax_DELAY. Based on the API Reference this should wait indefinitely until data is sent to the MessageBuffer. Task B calls xTaskNotify with the TaskHandle of Task A. When doing this xMessageBufferReceive of Task A returns 0 and Task A starts to run. The questions I want answered are:
- Is xTaskNotify expected to unblock xMessageBufferReceive?
- Is calling xTaskNotify without calling ulTaskNotifyTake wrong?
Thanks in advance for any help.