Hello, I’m keep learning FreeRTOS source code,
But in queue.c, I’m not really understand why need cRxLock and cTxLock,
I know that in send or receive function it can lock rx and tx when it check the timeout,
and in this situation the ISR event will record in cRxLock and cTxLock,
after checking timeout, it will check Lock value and release lock.
But I think the check timeout is not really long, why just put check into critical section,
then there is no need to use cRxLock and cTxLock and save release lock which is not short execute
I think maybe there is a key to design Lock, can anyone give me some hint, thanks