esp-idf/components/esp_timer
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
..
include esp_timer: init rtc timer and system timer in early init 2021-11-02 17:33:31 +08:00
private_include esp_timer: init rtc timer and system timer in early init 2021-11-02 17:33:31 +08:00
src improve thread safety in esp_timer 2023-05-29 14:27:49 +08:00
test ci: enable previously disabled unit tests 2021-07-29 09:29:29 +08:00
CMakeLists.txt Systimer reset alternative on S2 (and others) (v4.3) 2021-10-28 08:00:28 +00: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-30 14:28:02 +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