Home
last modified time | relevance | path

Searched refs:_evthread_id_fn (Results 1 – 2 of 2) sorted by relevance

/external/libevent/
Devthread.c52 GLOBAL unsigned long (*_evthread_id_fn)(void) = NULL; variable
68 _evthread_id_fn = id_fn; in evthread_set_id_callback()
200 if (_evthread_id_fn) { in evthread_debug_lock_mark_locked()
202 me = _evthread_id_fn(); in evthread_debug_lock_mark_locked()
233 if (_evthread_id_fn) { in evthread_debug_lock_mark_unlocked()
234 EVUTIL_ASSERT(lock->held_by == _evthread_id_fn()); in evthread_debug_lock_mark_unlocked()
299 if (_evthread_id_fn) { in _evthread_is_debug_lock_held()
300 unsigned long me = _evthread_id_fn(); in _evthread_is_debug_lock_held()
374 return _evthread_id_fn ? _evthread_id_fn() : 1; in _evthreadimpl_get_id()
Devthread-internal.h52 extern unsigned long (*_evthread_id_fn)(void);
57 (_evthread_id_fn ? _evthread_id_fn() : 1)
62 (_evthread_id_fn == NULL || \
63 (base)->th_owner_id == _evthread_id_fn())
69 (_evthread_id_fn != NULL && \
71 (base)->th_owner_id != _evthread_id_fn())