diff options
author | Matt Joyce <matthew.joyce@embedded-brains.de> | 2022-04-08 12:24:38 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-05-13 13:31:56 +0300 |
commit | d83aa402b7ba3e3ec16d247a26cc8343a2e7efa3 (patch) | |
tree | b63fb0a5d73d386f869452806bb7018d50be97ae /newlib/libc/misc | |
parent | e5e36867f851b7355e6221a598f604bcae52597f (diff) |
Remove __sinit_locks / __sinit_recursive_mutex
Remove __sinit_lock_acquire() and __sinit_lock_release(). Replace these with
__sfp_lock_acquire() and __sfp_lock_release(), respectively. This eliminates a
potential deadlock issue between __sinit() and __sfp(). Remove now unused
__sinit_recursive_mutex and __lock___sinit_recursive_mutex.
Diffstat (limited to 'newlib/libc/misc')
-rw-r--r-- | newlib/libc/misc/lock.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/newlib/libc/misc/lock.c b/newlib/libc/misc/lock.c index 545511e78..c03c36a1e 100644 --- a/newlib/libc/misc/lock.c +++ b/newlib/libc/misc/lock.c @@ -3,8 +3,6 @@ FUNCTION <<__retarget_lock_init>>, <<__retarget_lock_init_recursive>>, <<__retarget_lock_close>>, <<__retarget_lock_close_recursive>>, <<__retarget_lock_acquire>>, <<__retarget_lock_acquire_recursive>>, <<__retarget_lock_try_acquire>>, <<__retarget_lock_try_acquire_recursive>>, <<__retarget_lock_release>>, <<__retarget_lock_release_recursive>>---locking routines INDEX - __lock___sinit_recursive_mutex -INDEX __lock___sfp_recursive_mutex INDEX __lock___atexit_recursive_mutex @@ -44,7 +42,6 @@ INDEX SYNOPSIS #include <lock.h> - struct __lock __lock___sinit_recursive_mutex; struct __lock __lock___sfp_recursive_mutex; struct __lock __lock___atexit_recursive_mutex; struct __lock __lock___at_quick_exit_mutex; @@ -92,7 +89,6 @@ struct __lock { char unused; }; -struct __lock __lock___sinit_recursive_mutex; struct __lock __lock___sfp_recursive_mutex; struct __lock __lock___atexit_recursive_mutex; struct __lock __lock___at_quick_exit_mutex; |