esp-idf/components/freertos/FreeRTOS-Kernel/include/freertos
Darian Leung 1625a3aae2 freertos: Fix event group task list race condition
FreeRTOS synchronization primitives (e.g., queues, eventgroups) use various event lists (i.e., task lists) to track what
tasks are blocked on a current primitive. Usually these event lists are accessed via one of the event lists functions
(such as vTask[PlaceOn|RemoveFrom]UnorderedEventList()), which in turn ensure that the global task list spinlock
(xTaskQueueMutex) is taken when accessing these lists.

However, some functions in event_groups.c manually traverse their event lists. Thus if a tick interrupt occurs on
another core during traversal and that tick interrupt unblocks a task on the event list being traversed, the event list
will be corrupted.

This commit modifies the following event_groups.c functions so that they take the global task list lock before
traversing their event list.

- xEventGroupSetBits()
- vEventGroupDelete()
2022-06-30 20:12:26 +08:00
..
atomic.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
croutine.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
deprecated_definitions.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
event_groups.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
FreeRTOS.h freertos: Refactor configuration files 2022-02-10 21:23:46 +08:00
list.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
message_buffer.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
mpu_prototypes.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
mpu_wrappers.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
portable.h freertos: Refactor configuration files 2022-02-10 21:23:46 +08:00
projdefs.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
queue.h docs: fix all doxygen warnings 2022-05-12 14:50:03 +08:00
semphr.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
stack_macros.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
StackMacros.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
stdint.readme freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
stream_buffer.h freertos: Add SPDX license identifiers and update xtensa port files 2022-02-03 17:08:14 +08:00
task.h freertos: Fix event group task list race condition 2022-06-30 20:12:26 +08:00
timers.h freertos: Refactor configuration files 2022-02-10 21:23:46 +08:00