tx_queue_receive returns back TX_QUEUE_EMPTY with TX_WAIT_FOREVER being set

duan allen 76 Reputation points
2021-04-23T06:39:12.993+00:00

My understanding is that the taks calling tx_queue_receive should stay in suspend mode until it receives Msg because the TX_WAIT_FOREVER is set. However, in this case, I received TX_QUEUE_EMPTY: (0x0A) which is defined as below. It's hard to corelate my assumption and the explanation below, can I get some hlep. :)

TX_QUEUE_EMPTY: (0x0A) Service was unable to retrieve a message because the queue was empty for the duration of the specified time to wait.

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.