diff options
author | Thomas Preudhomme <thomas.preudhomme@foss.arm.com> | 2017-01-24 16:05:01 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-01-25 12:36:05 +0100 |
commit | cd1b8835269274977dfc9c394913b91e6d63f591 (patch) | |
tree | 750bf3c3cfd6faa55e00ac94ec05a71b17d2046f /newlib/libc/stdlib/quick_exit.c | |
parent | dfbc941f7e93d4e39655bdd69bba50c3e43012b8 (diff) | |
download | cygnal-cd1b8835269274977dfc9c394913b91e6d63f591.tar.gz cygnal-cd1b8835269274977dfc9c394913b91e6d63f591.tar.bz2 cygnal-cd1b8835269274977dfc9c394913b91e6d63f591.zip |
Prefix consistenly target-independent locks with __
Hi,
With the patch to allow newlib's locking routine to be retargeted currently
under discussion, we need to start thinking of locks as part of newlib's ABI
since newlib depends on specific names being provided by the OS. This patch
renames 2 locks so that they follow the same naming convention as other locks.
It needs to be applied before the retargeting patch, while locks are still an
internal consideration.
Newlib builds successfully with this change.
Ok for master branch?
Best regards,
Thomas
Diffstat (limited to 'newlib/libc/stdlib/quick_exit.c')
-rw-r--r-- | newlib/libc/stdlib/quick_exit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/stdlib/quick_exit.c b/newlib/libc/stdlib/quick_exit.c index 1d6fb231e..34f41b737 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, __atexit_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(__atexit_mutex); h->next = handlers; handlers = h; - __lock_release(atexit_mutex); + __lock_release(__atexit_mutex); return (0); } |