use a single libc and deduplicate threading code
[uclibc-ng.git] / libpthread / nptl / sysdeps / unix / sysv / linux / pthread_mutex_cond_lock.c
blob804bfab44c5ae8ae16ff0cd1ddfab9503597a941
1 #include <pthreadP.h>
3 #define LLL_MUTEX_LOCK(mutex) \
4 lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex))
5 #define LLL_MUTEX_TRYLOCK(mutex) \
6 lll_cond_trylock ((mutex)->__data.__lock)
7 #define LLL_ROBUST_MUTEX_LOCK(mutex, id) \
8 lll_robust_cond_lock ((mutex)->__data.__lock, id, \
9 PTHREAD_ROBUST_MUTEX_PSHARED (mutex))
10 #define __pthread_mutex_lock __pthread_mutex_cond_lock
11 #define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
12 #define NO_INCR
14 #include <pthread_mutex_lock.c>