Searched refs:_evthread_lock_fns (Results 1 – 2 of 2) sorted by relevance
/external/libevent/ |
D | evthread.c | 49 GLOBAL struct evthread_lock_callbacks _evthread_lock_fns = { variable 76 ? &_original_lock_fns : &_evthread_lock_fns; in evthread_set_lock_callbacks() 82 memset(target, 0, sizeof(_evthread_lock_fns)); in evthread_set_lock_callbacks() 101 memcpy(target, cbs, sizeof(_evthread_lock_fns)); in evthread_set_lock_callbacks() 279 memcpy(&_original_lock_fns, &_evthread_lock_fns, in evthread_enable_lock_debuging() 281 memcpy(&_evthread_lock_fns, &cbs, in evthread_enable_lock_debuging() 350 return _evthread_lock_fns.alloc(locktype); in evthread_setup_global_lock_() 379 return _evthread_lock_fns.alloc ? in _evthreadimpl_lock_alloc() 380 _evthread_lock_fns.alloc(locktype) : NULL; in _evthreadimpl_lock_alloc() 385 if (_evthread_lock_fns.free) in _evthreadimpl_lock_free() [all …]
|
D | evthread-internal.h | 50 extern struct evthread_lock_callbacks _evthread_lock_fns; 76 ((lockvar) = _evthread_lock_fns.alloc ? \ 77 _evthread_lock_fns.alloc(locktype) : NULL) 83 if (_lock_tmp_ && _evthread_lock_fns.free) \ 84 _evthread_lock_fns.free(_lock_tmp_, (locktype)); \ 91 _evthread_lock_fns.lock(mode, lockvar); \ 98 _evthread_lock_fns.unlock(mode, lockvar); \ 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() 178 (_evthread_lock_fns.lock != NULL)
|