Is xTaskNotifyGive expected to unblock xMessageBufferReceive with xTicksToWait set to portMAX_DELAY?

  • Yes, using the basic, non-indexed notifications unblocks stream- and message buffers as side effect caused by the (very lean) implementation.
    Application writers need to take care about the return code to handle this ambiguity.
    See also this thread for further details.
    Indexed notifications were introduced with FreeRTOS 10.4.0.
  • It’s not wrong, but usually xTaskNotify is paired with ulTaskNotifyTake to be useful.
1 Like