Angus Gratton 09bb7a7650 newlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock
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*
2017-07-04 15:23:10 +08:00
..
2017-01-11 15:03:12 +08:00
2016-08-17 23:08:22 +08:00
2016-08-17 23:08:22 +08:00
2016-08-17 23:08:22 +08:00
2016-08-17 23:08:22 +08:00
2016-08-17 23:08:22 +08:00
2016-10-27 17:21:17 +08:00