mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
75d6fdf73c
If scheduler was running, and lock was an automatic variable (ie stack-allocated) to be initialised by _lock_init*, initialisation could be skipped if the lock variable was non-zero (and lock would be left invalid). In other cases the lock is statically initialised to zero by __LOCK_INIT*