This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RESEND PATCH] Mutex: Use test and cmpxchg instead of cmpxchg while spinning
- From: Kemi Wang <kemi dot wang at intel dot com>
- To: Glibc alpha <libc-alpha at sourceware dot org>
- Cc: Kemi Wang <kemi dot wang at intel dot com>
- Date: Fri, 17 Aug 2018 16:10:31 +0800
- Subject: [RESEND PATCH] Mutex: Use test and cmpxchg instead of cmpxchg while spinning
Tested by build-many-glibcs.py
Kemi Wang (1):
Mutex: Use test and cmpxchg instead of cmpxchg while spinning
nptl/pthread_mutex_lock.c | 3 ++-
nptl/pthread_mutex_timedlock.c | 4 ++--
nptl/pthread_spinlock.h | 23 +++++++++++++++++++
sysdeps/unix/sysv/linux/x86/pthread_spinlock.h | 31 ++++++++++++++++++++++++++
4 files changed, 58 insertions(+), 3 deletions(-)
create mode 100644 nptl/pthread_spinlock.h
create mode 100644 sysdeps/unix/sysv/linux/x86/pthread_spinlock.h
--
2.7.4