Lines Matching refs:lockvar
80 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
81 ((lockvar) = evthread_lock_fns_.alloc ? \
85 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
87 void *lock_tmp_ = (lockvar); \
93 #define EVLOCK_LOCK(lockvar,mode) \ argument
95 if (lockvar) \
96 evthread_lock_fns_.lock(mode, lockvar); \
100 #define EVLOCK_UNLOCK(lockvar,mode) \ argument
102 if (lockvar) \
103 evthread_lock_fns_.unlock(mode, lockvar); \
118 #define EVBASE_ACQUIRE_LOCK(base, lockvar) do { \ argument
119 EVLOCK_LOCK((base)->lockvar, 0); \
123 #define EVBASE_RELEASE_LOCK(base, lockvar) do { \ argument
124 EVLOCK_UNLOCK((base)->lockvar, 0); \
215 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument
216 ((lockvar) = evthreadimpl_lock_alloc_(locktype))
218 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument
220 void *lock_tmp_ = (lockvar); \
226 #define EVLOCK_LOCK(lockvar,mode) \ argument
228 if (lockvar) \
229 evthreadimpl_lock_lock_(mode, lockvar); \
233 #define EVLOCK_UNLOCK(lockvar,mode) \ argument
235 if (lockvar) \
236 evthreadimpl_lock_unlock_(mode, lockvar); \
241 #define EVBASE_ACQUIRE_LOCK(base, lockvar) do { \ argument
242 EVLOCK_LOCK((base)->lockvar, 0); \
246 #define EVBASE_RELEASE_LOCK(base, lockvar) do { \ argument
247 EVLOCK_UNLOCK((base)->lockvar, 0); \
309 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) EVUTIL_NIL_STMT_ argument
310 #define EVTHREAD_FREE_LOCK(lockvar, locktype) EVUTIL_NIL_STMT_ argument
312 #define EVLOCK_LOCK(lockvar, mode) EVUTIL_NIL_STMT_ argument
313 #define EVLOCK_UNLOCK(lockvar, mode) EVUTIL_NIL_STMT_ argument
377 #define EVTHREAD_SETUP_GLOBAL_LOCK(lockvar, locktype) \ argument
379 lockvar = evthread_setup_global_lock_(lockvar, \
381 if (!lockvar) { \
382 event_warn("Couldn't allocate %s", #lockvar); \