esp-idf/components/esp_timer
Jens Gutermuth 9fa30d44f3
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-02 20:22:51 +02:00
..
include esp_hw_support: Fix esp_light_sleep_start() deadlock 2022-09-16 17:02:38 +08:00
private_include esp_timer: init rtc timer and system timer in early init 2021-11-15 19:38:09 +08:00
src improve thread safety in esp_timer 2023-05-02 20:22:51 +02:00
test esp_timer: fix ESP_TIMER_ISR dispatch method due to off by one error 2022-11-10 15:03:15 +08:00
CMakeLists.txt esp_timer: correct startup time 2021-03-25 15:38:27 +08:00
component.mk put pm_slp_iram_opt and pm_rtos_iram_opt related attributes in esp_pm/linker.lf 2021-01-06 03:40:28 +00:00
Kconfig docs: updated system api-reference chapters for C3 2021-03-15 18:51:12 +08:00
Makefile.projbuild Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
sdkconfig.rename esp32: add implementation of esp_timer based on TG0 LAC timer 2020-02-06 14:00:18 +08:00