Hi Sccot,
We team met a problem when using tx_byte_allocate. There has two same priority threads that need using tx_byte_allocate,but we found CPU can toggle between the two threads when they both call tx_byte_allocate, resulting in they can‘t jump out of the loop in _tx_byte_pool_search. We found interrupt restored in line 258 of tx_byte_pool_search.c and disabled immediately in line 261,here may be the point that causes two threads interlock. Could you explain me for what reason enable the interrupt here.
Thank you so much.
Hi Sccot, We team met a problem when using tx_byte_allocate. There has two same priority threads that need using tx_byte_allocate,but we found CPU can toggle between the two threads when they both call tx_byte_allocate, resulting in they can‘t jump out of the loop in _tx_byte_pool_search. We found interrupt restored in line 258 of tx_byte_pool_search.c and disabled immediately in line 261,here may be the point that causes two threads interlock. Could you explain me for what reason enable the interrupt here. Thank you so much.