summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/quick_exit.c
diff options
context:
space:
mode:
authorFreddie Chopin <freddie.chopin@gmail.com>2017-01-29 10:27:17 +0100
committerJeff Johnston <jjohnstn@redhat.com>2017-02-06 16:55:09 -0500
commit0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6 (patch)
tree169fb9fc713636bec44116ba64ca15d023401a92 /newlib/libc/stdlib/quick_exit.c
parent4e46ff3e8198adc00bbf4b4455c760ff0c599f44 (diff)
downloadcygnal-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.tar.gz
cygnal-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.tar.bz2
cygnal-0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6.zip
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/quick_exit.c')
-rw-r--r--newlib/libc/stdlib/quick_exit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/quick_exit.c b/newlib/libc/stdlib/quick_exit.c
index 34f41b737..aaa5f9f7f 100644
--- a/newlib/libc/stdlib/quick_exit.c
+++ b/newlib/libc/stdlib/quick_exit.c
@@ -44,7 +44,7 @@ struct quick_exit_handler {
/**
* Lock protecting the handlers list.
*/
-__LOCK_INIT(static, __atexit_mutex);
+__LOCK_INIT(static, __at_quick_exit_mutex);
/**
* Stack of cleanup handlers. These will be invoked in reverse order when
*/
@@ -60,10 +60,10 @@ at_quick_exit(void (*func)(void))
if (NULL == h)
return (1);
h->cleanup = func;
- __lock_acquire(__atexit_mutex);
+ __lock_acquire(__at_quick_exit_mutex);
h->next = handlers;
handlers = h;
- __lock_release(__atexit_mutex);
+ __lock_release(__at_quick_exit_mutex);
return (0);
}