Lines Matching refs:lock

91 			_evthread_lock_fns.lock(mode, lockvar);		\
124 #define EVLOCK_ASSERT_LOCKED(lock) \ argument
126 if ((lock) && _evthread_lock_debugging_enabled) { \
127 EVUTIL_ASSERT(_evthread_is_debug_lock_held(lock)); \
133 static inline int EVLOCK_TRY_LOCK(void *lock);
135 EVLOCK_TRY_LOCK(void *lock) in EVLOCK_TRY_LOCK() argument
137 if (lock && _evthread_lock_fns.lock) { in EVLOCK_TRY_LOCK()
138 int r = _evthread_lock_fns.lock(EVTHREAD_TRY, lock); in EVLOCK_TRY_LOCK()
169 #define EVTHREAD_COND_WAIT(cond, lock) \ argument
170 ( (cond) ? _evthread_cond_fns.wait_condition((cond), (lock), NULL) : 0 )
173 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument
174 ( (cond) ? _evthread_cond_fns.wait_condition((cond), (lock), (tv)) : 0 )
178 (_evthread_lock_fns.lock != NULL)
185 void _evthreadimpl_lock_free(void *lock, unsigned locktype);
186 int _evthreadimpl_lock_lock(unsigned mode, void *lock);
187 int _evthreadimpl_lock_unlock(unsigned mode, void *lock);
191 int _evthreadimpl_cond_wait(void *cond, void *lock, const struct timeval *tv);
238 #define EVLOCK_ASSERT_LOCKED(lock) \ argument
240 if ((lock) && _evthreadimpl_is_lock_debugging_enabled()) { \
241 EVUTIL_ASSERT(_evthread_is_debug_lock_held(lock)); \
247 static inline int EVLOCK_TRY_LOCK(void *lock);
249 EVLOCK_TRY_LOCK(void *lock) in EVLOCK_TRY_LOCK() argument
251 if (lock) { in EVLOCK_TRY_LOCK()
252 int r = _evthreadimpl_lock_lock(EVTHREAD_TRY, lock); in EVLOCK_TRY_LOCK()
282 #define EVTHREAD_COND_WAIT(cond, lock) \ argument
283 ( (cond) ? _evthreadimpl_cond_wait((cond), (lock), NULL) : 0 )
286 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument
287 ( (cond) ? _evthreadimpl_cond_wait((cond), (lock), (tv)) : 0 )
305 #define EVBASE_ACQUIRE_LOCK(base, lock) _EVUTIL_NIL_STMT argument
306 #define EVBASE_RELEASE_LOCK(base, lock) _EVUTIL_NIL_STMT argument
307 #define EVLOCK_ASSERT_LOCKED(lock) _EVUTIL_NIL_STMT argument
309 #define EVLOCK_TRY_LOCK(lock) 1 argument
315 #define EVTHREAD_COND_WAIT(cond, lock) _EVUTIL_NIL_STMT argument
316 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, howlong) _EVUTIL_NIL_STMT argument
356 int _evthread_is_debug_lock_held(void *lock);
357 void *_evthread_debug_get_real_lock(void *lock);