Lines Matching refs:NAME
45 #define __libc_lock_define_recursive(CLASS,NAME) \ argument
46 CLASS __libc_lock_recursive_t NAME;
51 # define __libc_lock_define_initialized_recursive(CLASS, NAME) \ argument
52 CLASS __libc_lock_recursive_t NAME = _LIBC_LOCK_RECURSIVE_INITIALIZER;
56 # define __libc_lock_define_initialized_recursive(CLASS,NAME) \ argument
57 CLASS __libc_lock_recursive_t NAME = _LIBC_LOCK_RECURSIVE_INITIALIZER;
64 # define __libc_lock_init_recursive(NAME) \ argument
65 ((void) ((NAME) = (__libc_lock_recursive_t) _LIBC_LOCK_RECURSIVE_INITIALIZER))
67 # define __libc_lock_init_recursive(NAME) \ argument
74 __pthread_mutex_init (&(NAME).mutex, &__attr); \
82 # define __libc_lock_fini_recursive(NAME) ((void) 0) argument
84 # define __libc_lock_fini_recursive(NAME) \ argument
85 __libc_maybe_call (__pthread_mutex_destroy, (&(NAME).mutex), 0)
90 # define __libc_lock_lock_recursive(NAME) \ argument
93 if ((NAME).owner != self) \
95 lll_lock ((NAME).lock, LLL_PRIVATE); \
96 (NAME).owner = self; \
98 ++(NAME).cnt; \
101 # define __libc_lock_lock_recursive(NAME) \ argument
102 __libc_maybe_call (__pthread_mutex_lock, (&(NAME).mutex), 0)
107 # define __libc_lock_trylock_recursive(NAME) \ argument
111 if ((NAME).owner != self) \
113 if (lll_trylock ((NAME).lock) == 0) \
115 (NAME).owner = self; \
116 (NAME).cnt = 1; \
122 ++(NAME).cnt; \
126 # define __libc_lock_trylock_recursive(NAME) \ argument
127 __libc_maybe_call (__pthread_mutex_trylock, (&(NAME).mutex), 0)
133 # define __libc_lock_unlock_recursive(NAME) \ argument
135 if (--(NAME).cnt == 0) \
137 (NAME).owner = NULL; \
138 lll_unlock ((NAME).lock, LLL_PRIVATE); \
142 # define __libc_lock_unlock_recursive(NAME) \ argument
143 __libc_maybe_call (__pthread_mutex_unlock, (&(NAME).mutex), 0)