File: pthread_mutex_cond_lock.c

package info (click to toggle)
uclibc 1.0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 27,440 kB
  • ctags: 52,299
  • sloc: ansic: 218,051; asm: 35,518; cpp: 4,378; makefile: 2,781; sh: 618; yacc: 610; perl: 562; lex: 364; awk: 40
file content (14 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <pthreadP.h>

#define LLL_MUTEX_LOCK(mutex) \
  lll_cond_lock ((mutex)->__data.__lock, PTHREAD_MUTEX_PSHARED (mutex))
#define LLL_MUTEX_TRYLOCK(mutex) \
  lll_cond_trylock ((mutex)->__data.__lock)
#define LLL_ROBUST_MUTEX_LOCK(mutex, id) \
  lll_robust_cond_lock ((mutex)->__data.__lock, id, \
			PTHREAD_ROBUST_MUTEX_PSHARED (mutex))
#define __pthread_mutex_lock __pthread_mutex_cond_lock
#define __pthread_mutex_lock_full __pthread_mutex_cond_lock_full
#define NO_INCR

#include <pthread_mutex_lock.c>