[RESEND PATCH] Mutex: Use test and cmpxchg instead of cmpxchg while spinning

Kemi Wang kemi.wang@intel.com
Fri Aug 17 08:14:00 GMT 2018


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



More information about the Libc-alpha mailing list