mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
6fb996b1ac
Spinlocks from spinlock.h do not disable the scheduler and thus cannot safely be directly used as a locking mechanism. A task holding the lock can get pre-empted, and at that point the new running task will also be allowed to take the spinlock and access whatever it was protecting. Another issue is that the task holding a spinlock could migrate to a different core which in turn would cause the application to fail asserts. The current implementation assumes the core that takes the lock is also the core that releases it. Closes https://github.com/espressif/esp-idf/issues/5762 |
||
---|---|---|
.. | ||
platform_include | ||
port | ||
priv_include | ||
test | ||
.gitignore | ||
.gitmodules | ||
abort.c | ||
CMakeLists.txt | ||
component.mk | ||
COPYING.NEWLIB | ||
esp32-spiram-rom-functions-c.lf | ||
heap.c | ||
Kconfig | ||
locks.c | ||
Makefile.old | ||
newlib.lf | ||
poll.c | ||
pthread.c | ||
random.c | ||
reent_init.c | ||
syscall_table.c | ||
syscalls.c | ||
termios.c | ||
time.c |