From 0eeb4c1d32aab0dbfd2a8f20aa326ae2d98ca1c6 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Sun, 29 Jan 2017 10:27:17 +0100 Subject: 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: "___[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 --- newlib/libc/stdlib/arc4random.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/stdlib/arc4random.h') diff --git a/newlib/libc/stdlib/arc4random.h b/newlib/libc/stdlib/arc4random.h index 54bcbe8ae..3c5fe2353 100644 --- a/newlib/libc/stdlib/arc4random.h +++ b/newlib/libc/stdlib/arc4random.h @@ -39,11 +39,11 @@ #ifndef _ARC4_LOCK_INIT -#define _ARC4_LOCK_INIT __LOCK_INIT(static, _arc4random_mutex); +#define _ARC4_LOCK_INIT __LOCK_INIT(static, __arc4random_mutex); -#define _ARC4_LOCK() __lock_acquire(_arc4random_mutex) +#define _ARC4_LOCK() __lock_acquire(__arc4random_mutex) -#define _ARC4_UNLOCK() __lock_release(_arc4random_mutex) +#define _ARC4_UNLOCK() __lock_release(__arc4random_mutex) #endif /* _ARC4_LOCK_INIT */ -- cgit v1.2.3