diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-09-13 09:58:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-09-13 09:58:58 -0700 |
commit | 9503345f12b53b0c5f8eee9611aedec7ffe0b185 (patch) | |
tree | a589e8252d36a911a00ee0dad813f80efb6f08da /nptl | |
parent | ad35fc005bd7613218873f56d8d5a709cd67e5d3 (diff) | |
download | glibc-9503345f12b53b0c5f8eee9611aedec7ffe0b185.zip glibc-9503345f12b53b0c5f8eee9611aedec7ffe0b185.tar.gz glibc-9503345f12b53b0c5f8eee9611aedec7ffe0b185.tar.bz2 |
Remove unused __rtld_lock_init_recursive macro
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/ChangeLog | 6 | ||||
-rw-r--r-- | nptl/sysdeps/pthread/bits/libc-lockP.h | 12 |
2 files changed, 6 insertions, 12 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index b89216e..7745b2e 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,9 @@ +2012-09-13 H.J. Lu <hongjiu.lu@intel.com> + + [BZ #14576] + * sysdeps/pthread/bits/libc-lockP.h (__rtld_lock_init_recursive): + Removed. + 2012-09-07 H.J. Lu <hongjiu.lu@intel.com> * Makefile (LDFLAGS-tst-cancel24): Renamed to ... diff --git a/nptl/sysdeps/pthread/bits/libc-lockP.h b/nptl/sysdeps/pthread/bits/libc-lockP.h index 7adaeb4..0e9268c 100644 --- a/nptl/sysdeps/pthread/bits/libc-lockP.h +++ b/nptl/sysdeps/pthread/bits/libc-lockP.h @@ -146,18 +146,6 @@ typedef pthread_key_t __libc_key_t; __libc_maybe_call (__pthread_rwlock_init, (&(NAME), NULL), 0) #endif -#define __rtld_lock_init_recursive(NAME) \ - do { \ - if (__pthread_mutex_init != NULL) \ - { \ - pthread_mutexattr_t __attr; \ - __pthread_mutexattr_init (&__attr); \ - __pthread_mutexattr_settype (&__attr, PTHREAD_MUTEX_RECURSIVE_NP); \ - __pthread_mutex_init (&(NAME).mutex, &__attr); \ - __pthread_mutexattr_destroy (&__attr); \ - } \ - } while (0) - /* Finalize the named lock variable, which must be locked. It cannot be used again until __libc_lock_init is called again on it. This must be called on a lock variable before the containing storage is reused. */ |