esp-idf/components/esp_timer/src
Jens Gutermuth af3486ecf9 improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-29 14:27:49 +08:00
..
esp_timer_impl_frc_legacy.c esp_timer: fix CONFIG_PM_USE_RTC_TIMER_REF option usage 2020-09-04 19:19:26 +00:00
esp_timer_impl_lac.c esp_timer: init rtc timer and system timer in early init 2021-11-02 17:33:31 +08:00
esp_timer_impl_systimer.c spi_flash: No CPU release time for an erase operation when OS is not running 2021-11-04 15:18:44 +08:00
esp_timer.c improve thread safety in esp_timer 2023-05-29 14:27:49 +08:00
ets_timer_legacy.c Updates for riscv support 2020-11-13 07:49:11 +11:00
system_time.c esp_system: Adds sync of FRC & RTC counters in esp_restart (v4.3) 2021-10-28 17:33:46 +00:00