esp-idf/components/esp_timer
Jens Gutermuth a2de1f0c67
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:38 +02:00
..
include esp_timer: add a function to restart timer 2022-12-01 10:45:35 +00:00
private_include esp_timer: init rtc timer and system timer in early init 2021-10-26 19:07:34 +08:00
src improve thread safety in esp_timer 2023-05-02 20:22:38 +02:00
test Merge branch 'feature/add_int_task_wdt_esp32c2_v5.0' into 'release/v5.0' 2022-12-05 16:38:35 +08:00
CMakeLists.txt build system: removed target component 2022-05-24 09:12:59 +08:00
Kconfig esp_timer: remove legacy ESP32 FRC timer implementation. 2022-02-10 15:17:49 +08:00
sdkconfig.rename esp32: add implementation of esp_timer based on TG0 LAC timer 2020-02-06 14:00:18 +08:00