Home
last modified time | relevance | path

Searched refs:evthread_lock_fns_ (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/ntp/sntp/libevent/
H A Devthread.c55 GLOBAL struct evthread_lock_callbacks evthread_lock_fns_ = { variable
80 ? &original_lock_fns_ : &evthread_lock_fns_; in evthread_get_lock_callbacks()
109 memset(target, 0, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
128 memcpy(target, cbs, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
330 memcpy(&original_lock_fns_, &evthread_lock_fns_, in evthread_enable_lock_debugging()
332 memcpy(&evthread_lock_fns_, &cbs, in evthread_enable_lock_debugging()
401 return evthread_lock_fns_.alloc(locktype); in evthread_setup_global_lock_()
437 return evthread_lock_fns_.alloc ? in evthreadimpl_lock_alloc_()
438 evthread_lock_fns_.alloc(locktype) : NULL; in evthreadimpl_lock_alloc_()
443 if (evthread_lock_fns_.free) in evthreadimpl_lock_free_()
[all …]
H A Devthread-internal.h53 extern struct evthread_lock_callbacks evthread_lock_fns_;
81 ((lockvar) = evthread_lock_fns_.alloc ? \
82 evthread_lock_fns_.alloc(locktype) : NULL)
88 if (lock_tmp_ && evthread_lock_fns_.free) \
89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
96 evthread_lock_fns_.lock(mode, lockvar); \
103 evthread_lock_fns_.unlock(mode, lockvar); \
142 if (lock && evthread_lock_fns_.lock) { in EVLOCK_TRY_LOCK_()
143 int r = evthread_lock_fns_.lock(EVTHREAD_TRY, lock); in EVLOCK_TRY_LOCK_()
183 (evthread_lock_fns_.lock != NULL)
/freebsd/contrib/libevent/
H A Devthread.c55 GLOBAL struct evthread_lock_callbacks evthread_lock_fns_ = { variable
80 ? &original_lock_fns_ : &evthread_lock_fns_; in evthread_get_lock_callbacks()
109 memset(target, 0, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
128 memcpy(target, cbs, sizeof(evthread_lock_fns_)); in evthread_set_lock_callbacks()
330 memcpy(&original_lock_fns_, &evthread_lock_fns_, in evthread_enable_lock_debugging()
332 memcpy(&evthread_lock_fns_, &cbs, in evthread_enable_lock_debugging()
401 return evthread_lock_fns_.alloc(locktype); in evthread_setup_global_lock_()
437 return evthread_lock_fns_.alloc ? in evthreadimpl_lock_alloc_()
438 evthread_lock_fns_.alloc(locktype) : NULL; in evthreadimpl_lock_alloc_()
443 if (evthread_lock_fns_.free) in evthreadimpl_lock_free_()
[all …]
H A Devthread-internal.h53 extern struct evthread_lock_callbacks evthread_lock_fns_;
81 ((lockvar) = evthread_lock_fns_.alloc ? \
82 evthread_lock_fns_.alloc(locktype) : NULL)
88 if (lock_tmp_ && evthread_lock_fns_.free) \
89 evthread_lock_fns_.free(lock_tmp_, (locktype)); \
96 evthread_lock_fns_.lock(mode, lockvar); \
103 evthread_lock_fns_.unlock(mode, lockvar); \
142 if (lock && evthread_lock_fns_.lock) { in EVLOCK_TRY_LOCK_()
143 int r = evthread_lock_fns_.lock(EVTHREAD_TRY, lock); in EVLOCK_TRY_LOCK_()
183 (evthread_lock_fns_.lock != NULL)