kopia lustrzana https://github.com/espressif/esp-idf
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 | ||
CMakeLists.txt | ||
COPYING.NEWLIB | ||
Kconfig | ||
Makefile.old | ||
abort.c | ||
component.mk | ||
esp32-spiram-rom-functions-c.lf | ||
heap.c | ||
locks.c | ||
newlib.lf | ||
poll.c | ||
pthread.c | ||
random.c | ||
reent_init.c | ||
syscall_table.c | ||
syscalls.c | ||
termios.c | ||
time.c |