mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cc5ee295ad
Previously, esp_apptrace_lock_take() would manually disable interrupts and acquire the spinlock in order to allow the criticla section entry to have time outs, and also be preemptable in between attempts to acquired. However, the same can be achieved by using portTRY_ENTER_CRITICAL(), thus allowing us to make spinlock_acquire/spinlock_release private.