diff options
author | Freddie Chopin <freddie.chopin@gmail.com> | 2017-01-29 10:27:17 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2017-02-06 16:55:09 -0500 |
commit | 0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6 (patch) | |
tree | 169fb9fc713636bec44116ba64ca15d023401a92 /newlib/libc/stdlib/mlock.c | |
parent | 4e46ff3e8198adc00bbf4b4455c760ff0c599f44 (diff) | |
download | newlib-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.zip newlib-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.tar.gz newlib-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.tar.bz2 |
Unify names of all lock objects
In preparation for the patch that would allow retargeting of locking
routines, rename all lock objects to follow this pattern:
"__<name>_[recursive_]mutex".
Following locks were renamed:
__dd_hash_lock -> __dd_hash_mutex
__sfp_lock -> __sfp_recursive_mutex
__sinit_lock -> __sinit_recursive_mutex
__atexit_lock -> __atexit_recursive_mutex
_arc4random_mutex -> __arc4random_mutex
__env_lock_object -> __env_recursive_mutex
__malloc_lock_object -> __malloc_recursive_mutex
__atexit_mutex -> __at_quick_exit_mutex
__tz_lock_object -> __tz_mutex
Diffstat (limited to 'newlib/libc/stdlib/mlock.c')
-rw-r--r-- | newlib/libc/stdlib/mlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/mlock.c b/newlib/libc/stdlib/mlock.c index 888c986..4c39294 100644 --- a/newlib/libc/stdlib/mlock.c +++ b/newlib/libc/stdlib/mlock.c @@ -40,7 +40,7 @@ that it already holds. #include <sys/lock.h> #ifndef __SINGLE_THREAD__ -__LOCK_INIT_RECURSIVE(static, __malloc_lock_object); +__LOCK_INIT_RECURSIVE(static, __malloc_recursive_mutex); #endif void @@ -48,7 +48,7 @@ __malloc_lock (ptr) struct _reent *ptr; { #ifndef __SINGLE_THREAD__ - __lock_acquire_recursive (__malloc_lock_object); + __lock_acquire_recursive (__malloc_recursive_mutex); #endif } @@ -57,7 +57,7 @@ __malloc_unlock (ptr) struct _reent *ptr; { #ifndef __SINGLE_THREAD__ - __lock_release_recursive (__malloc_lock_object); + __lock_release_recursive (__malloc_recursive_mutex); #endif } |