mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
8b56345e44
In the queue registry test, start_sem is given twice to let both tasks start the test. Each task takes start_sem, does some work, gives done_sem, and goes on to wait for start_sem again. It may happen that one task can grab start_sem, add queues to the registry, give done_sem, then grab start_sem again, delete the queues from the registry, and give done_sem again. At this point, main test task takes done_sem twice and proceeds to verify that queues have been added to the registry. But in fact, the first task has already deleted its queues from the registry, and the second one might not have added the queues yet. This causes test to fail. This changes the test to use separate start semaphores for each task, to avoid the race condition. |
||
---|---|---|
.. | ||
include/freertos | ||
test | ||
component.mk | ||
croutine.c | ||
event_groups.c | ||
FreeRTOS-openocd.c | ||
Kconfig | ||
license.txt | ||
list.c | ||
port.c | ||
portasm.S | ||
portmux_impl.h | ||
queue.c | ||
readme_xtensa.txt | ||
ringbuf.c | ||
stdint.readme | ||
tasks.c | ||
timers.c | ||
xtensa_context.S | ||
xtensa_init.c | ||
xtensa_intr_asm.S | ||
xtensa_intr.c | ||
xtensa_overlay_os_hook.c | ||
xtensa_vector_defaults.S | ||
xtensa_vectors.S |