Blame nptl/pthread_mutex_cond_lock.c

Packit 6c4009
#include <pthreadP.h>
Packit 6c4009
Packit 6c4009
#define LLL_MUTEX_LOCK(mutex) \
Packit 6c4009
  lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex))
Packit 6c4009
Packit 6c4009
/* Not actually elided so far. Needed? */
Packit 6c4009
#define LLL_MUTEX_LOCK_ELISION(mutex)  \
Packit 6c4009
  ({ lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex)); 0; })
Packit 6c4009
Packit 6c4009
#define LLL_MUTEX_TRYLOCK(mutex) \
Packit 6c4009
  lll_cond_trylock ((mutex)->__data.__lock)
Packit 6c4009
#define LLL_MUTEX_TRYLOCK_ELISION(mutex) LLL_MUTEX_TRYLOCK(mutex)
Packit 6c4009
Packit 6c4009
/* We need to assume that there are other threads blocked on the futex.
Packit 6c4009
   See __pthread_mutex_lock_full for further details.  */
Packit 6c4009
#define LLL_ROBUST_MUTEX_LOCK_MODIFIER FUTEX_WAITERS
Packit 6c4009
#define __pthread_mutex_lock  __pthread_mutex_cond_lock
Packit 6c4009
#define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
Packit 6c4009
#define NO_INCR
Packit 6c4009
Packit 6c4009
#include <nptl/pthread_mutex_lock.c>