pthread_mutex_cond_lock.c 513 B

1234567891011121314
  1. #include <pthreadP.h>
  2. #define LLL_MUTEX_LOCK(mutex) \
  3. lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex))
  4. #define LLL_MUTEX_TRYLOCK(mutex) \
  5. lll_cond_trylock ((mutex)->__data.__lock)
  6. #define LLL_ROBUST_MUTEX_LOCK(mutex, id) \
  7. lll_robust_cond_lock ((mutex)->__data.__lock, id, \
  8. PTHREAD_ROBUST_MUTEX_PSHARED (mutex))
  9. #define __pthread_mutex_lock __pthread_mutex_cond_lock
  10. #define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
  11. #define NO_INCR
  12. #include <pthread_mutex_lock.c>