fnmatch: work around GCC compiler warning bug with uninit var
[glibc.git] / nptl / pthread_mutex_cond_lock.c
blob7b6fbc18aa5f1153c46cb80ec1ecd1c12731d4b4
1 #include <pthreadP.h>
3 #define LLL_MUTEX_LOCK(mutex) \
4 lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex))
6 /* Not actually elided so far. Needed? */
7 #define LLL_MUTEX_LOCK_ELISION(mutex) \
8 ({ lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex)); 0; })
10 #define LLL_MUTEX_TRYLOCK(mutex) \
11 lll_cond_trylock ((mutex)->__data.__lock)
12 #define LLL_MUTEX_TRYLOCK_ELISION(mutex) LLL_MUTEX_TRYLOCK(mutex)
14 #define LLL_ROBUST_MUTEX_LOCK(mutex, id) \
15 lll_robust_cond_lock ((mutex)->__data.__lock, id, \
16 PTHREAD_ROBUST_MUTEX_PSHARED (mutex))
17 #define __pthread_mutex_lock __pthread_mutex_cond_lock
18 #define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
19 #define NO_INCR
21 #include <nptl/pthread_mutex_lock.c>