cancel
Showing results for 
Search instead for 
Did you mean: 

Queue behaviour with azure rtos/threadx, internally buffered?

OHaza.1
Associate III

Hi, I am experimenting with sending data across queues and noticed that if the queue size is just one deep I would expect a second attempt to add to the queue to wait until the corresponding receive function is called.

However after a first call to tx_queue_send, it doesn't seem to behave that way and in the threadx Message Queues list it still shows as Used 0, Free 1. On the second queue send it increments, so its behaving as if there is an additional buffer.

I can seemingly workaround this by calling tx_thread_relinquish() but am curious to know if this is expected behaviour or something specific to the stm32 implementation.

Thanks,

0 REPLIES 0