mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
1222f6dd3a
The release of the semaphore indicating the item was successfully sent must be the last semaphore released. The receiver may be in another task and may delete the Ringbuffer (such as with a return code across tasks design pattern) if they are through with the Ringbuffer. The function xRingbufferSendAcquire followed by xRingbufferSendComplete had the semaphores released in the proper order and that same pattern should have been used in xRingbufferSend and xRingbufferSendFromISR. This commit fixes this order. Issue (IDFGH-6030) #7716 describes the problem in more detail. Closes IDFGH-6030, https://github.com/espressif/esp-idf/issues/7716 Closes IDFGH-6036, https://github.com/espressif/esp-idf/pull/7721 |
||
---|---|---|
.. | ||
include/freertos | ||
test | ||
CMakeLists.txt | ||
component.mk | ||
linker.lf | ||
ringbuf.c |