mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
nptl: Move core mutex functions into libc
This is complicated because of a second compilation of nptl/pthread_mutex_lock.c via nptl/pthread_mutex_cond_lock.c. PTHREAD_MUTEX_VERSIONS is introduced to suppress symbol versions in that case. The symbols __pthread_mutex_lock, __pthread_mutex_unlock, __pthread_mutex_init, __pthread_mutex_destroy, pthread_mutex_lock, pthread_mutex_unlock, pthread_mutex_init, pthread_mutex_destroy have been moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -15,8 +15,9 @@
|
||||
/* We need to assume that there are other threads blocked on the futex.
|
||||
See __pthread_mutex_lock_full for further details. */
|
||||
#define LLL_ROBUST_MUTEX_LOCK_MODIFIER FUTEX_WAITERS
|
||||
#define __pthread_mutex_lock __pthread_mutex_cond_lock
|
||||
#define PTHREAD_MUTEX_LOCK __pthread_mutex_cond_lock
|
||||
#define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
|
||||
#define NO_INCR
|
||||
#define PTHREAD_MUTEX_VERSIONS 0
|
||||
|
||||
#include <nptl/pthread_mutex_lock.c>
|
||||
|
Reference in New Issue
Block a user