Home
last modified time | relevance | path

Searched refs:cbs (Results 1 – 10 of 10) sorted by relevance

/libevent-2.1.12/
H A Devthread.c105 if (!cbs) { in evthread_set_lock_callbacks()
116 target->alloc == cbs->alloc && in evthread_set_lock_callbacks()
117 target->free == cbs->free && in evthread_set_lock_callbacks()
118 target->lock == cbs->lock && in evthread_set_lock_callbacks()
119 target->unlock == cbs->unlock) { in evthread_set_lock_callbacks()
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks()
148 if (!cbs) { in evthread_set_condition_callbacks()
170 if (cbs->alloc_condition && cbs->free_condition && in evthread_set_condition_callbacks()
171 cbs->signal_condition && cbs->wait_condition) { in evthread_set_condition_callbacks()
320 struct evthread_lock_callbacks cbs = { in evthread_enable_lock_debugging() local
[all …]
H A Dbufferevent.c711 struct event_callback *cbs[MAX_CBS]; in bufferevent_decref_and_unlock_() local
725 cbs[0] = &bufev->ev_read.ev_evcallback; in bufferevent_decref_and_unlock_()
726 cbs[1] = &bufev->ev_write.ev_evcallback; in bufferevent_decref_and_unlock_()
727 cbs[2] = &bufev_private->deferred; in bufferevent_decref_and_unlock_()
732 cbs[n_cbs++] = &e->ev_evcallback; in bufferevent_decref_and_unlock_()
734 n_cbs += evbuffer_get_callbacks_(bufev->input, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
735 n_cbs += evbuffer_get_callbacks_(bufev->output, cbs+n_cbs, MAX_CBS-n_cbs); in bufferevent_decref_and_unlock_()
737 event_callback_finalize_many_(bufev->ev_base, n_cbs, cbs, in bufferevent_decref_and_unlock_()
H A Devthread_pthread.c166 struct evthread_lock_callbacks cbs = { in evthread_use_pthreads() local
187 evthread_set_lock_callbacks(&cbs); in evthread_use_pthreads()
H A Devthread_win32.c302 struct evthread_lock_callbacks cbs = { in evthread_use_windows_threads() local
329 evthread_set_lock_callbacks(&cbs); in evthread_use_windows_threads()
H A Devbuffer-internal.h344 struct event_callback **cbs,
H A Dbuffer.c3451 evbuffer_get_callbacks_(struct evbuffer *buffer, struct event_callback **cbs, in evbuffer_get_callbacks_() argument
3461 cbs[0] = &buffer->deferred; in evbuffer_get_callbacks_()
H A DChangeLog-2.0243 o Complain if the caller tries to change threading cbs after setting them (cb6ecee)
508 o Note that reentrant calls to libevent from logging cbs may fail badly (e431bcd)
H A DChangeLog1672 o Complain if the caller tries to change threading cbs after setting them (cb6ecee)
/libevent-2.1.12/test/
H A Dregress_bufferevent.c235 struct evthread_lock_callbacks cbs; member
260 lock = lu_base.cbs.alloc(locktype); in trace_lock_alloc()
271 lu_base.cbs.free(lock_, locktype); in trace_lock_free()
282 return lu_base.cbs.lock(mode, lock_); in trace_lock_lock()
293 return lu_base.cbs.unlock(mode, lock_); in trace_lock_unlock()
313 struct evthread_lock_callbacks cbs = { in use_lock_unlock_profiler() local
321 memcpy(&lu_base.cbs, evthread_get_lock_callbacks(), in use_lock_unlock_profiler()
322 sizeof(lu_base.cbs)); in use_lock_unlock_profiler()
326 evthread_set_lock_callbacks(&cbs); in use_lock_unlock_profiler()
H A Dregress_thread.c402 struct event_callback cbs[CB_COUNT]; member
426 event_deferred_cb_init_(&data->cbs[i], 0, deferred_callback, in load_deferred_queue()
428 event_deferred_cb_schedule_(data->queue, &data->cbs[i]); in load_deferred_queue()