Searched refs:locktype (Results 1 – 6 of 6) sorted by relevance
| /libevent-2.1.12/ |
| H A D | evthread.c | 186 unsigned locktype; member 195 debug_lock_alloc(unsigned locktype) in debug_lock_alloc() argument 210 result->locktype = locktype; in debug_lock_alloc() 221 EVUTIL_ASSERT(locktype == lock->locktype); in debug_lock_free() 377 return debug_lock_alloc(locktype); in evthread_setup_global_lock_() 386 return debug_lock_alloc(locktype); in evthread_setup_global_lock_() 394 lock->locktype = locktype; in evthread_setup_global_lock_() 407 EVUTIL_ASSERT(lock->locktype == locktype); in evthread_setup_global_lock_() 410 locktype|EVTHREAD_LOCKTYPE_RECURSIVE); in evthread_setup_global_lock_() 429 evthreadimpl_lock_alloc_(unsigned locktype) in evthreadimpl_lock_alloc_() argument [all …]
|
| H A D | evthread-internal.h | 80 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument 82 evthread_lock_fns_.alloc(locktype) : NULL) 85 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument 89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \ 191 void *evthreadimpl_lock_alloc_(unsigned locktype); 215 #define EVTHREAD_ALLOC_LOCK(lockvar, locktype) \ argument 216 ((lockvar) = evthreadimpl_lock_alloc_(locktype)) 218 #define EVTHREAD_FREE_LOCK(lockvar, locktype) \ argument 222 evthreadimpl_lock_free_(lock_tmp_, (locktype)); \ 377 #define EVTHREAD_SETUP_GLOBAL_LOCK(lockvar, locktype) \ argument [all …]
|
| H A D | evthread_pthread.c | 45 evthread_posix_lock_alloc(unsigned locktype) in evthread_posix_lock_alloc() argument 51 if (locktype & EVTHREAD_LOCKTYPE_RECURSIVE) in evthread_posix_lock_alloc() 61 evthread_posix_lock_free(void *lock_, unsigned locktype) in evthread_posix_lock_free() argument
|
| H A D | evthread_win32.c | 51 evthread_win32_lock_create(unsigned locktype) in evthread_win32_lock_create() argument 64 evthread_win32_lock_free(void *lock_, unsigned locktype) in evthread_win32_lock_free() argument
|
| /libevent-2.1.12/include/event2/ |
| H A D | thread.h | 109 void *(*alloc)(unsigned locktype); 112 void (*free)(void *lock, unsigned locktype);
|
| /libevent-2.1.12/test/ |
| H A D | regress_bufferevent.c | 254 static void *trace_lock_alloc(unsigned locktype) in trace_lock_alloc() argument 260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc() 264 static void trace_lock_free(void *lock_, unsigned locktype) in trace_lock_free() argument 271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
|