Home
last modified time | relevance | path

Searched refs:EV_WRITE (Results 1 – 25 of 64) sorted by relevance

123

/external/libevent/
Dbufferevent_sock.c137 (bufev->enabled & EV_WRITE) && in bufferevent_socket_outbuf_cb()
138 !event_pending(&bufev->ev_write, EV_WRITE, NULL) && in bufferevent_socket_outbuf_cb()
280 if (!(bufev->enabled & EV_WRITE) || in bufferevent_writecb()
324 bufferevent_trigger_nolock_(bufev, EV_WRITE, 0); in bufferevent_writecb()
336 bufferevent_disable(bufev, EV_WRITE); in bufferevent_writecb()
369 EV_WRITE|EV_PERSIST|EV_FINALIZE, bufferevent_writecb, bufev); in bufferevent_socket_new()
424 EV_WRITE|EV_PERSIST|EV_FINALIZE, bufferevent_writecb, bev); in bufferevent_socket_connect()
429 if (! be_socket_enable(bev, EV_WRITE)) { in bufferevent_socket_connect()
438 bufferevent_trigger_nolock_(bev, EV_WRITE, BEV_OPT_DEFER_CALLBACKS); in bufferevent_socket_connect()
443 bufferevent_disable(bev, EV_WRITE|EV_READ); in bufferevent_socket_connect()
[all …]
Dbufferevent_pair.c188 bufferevent_trigger_nolock_(src, EV_WRITE, 0); in be_pair_transfer()
198 return (downcast(src)->enabled & EV_WRITE) && in be_pair_wants_to_talk()
235 if ((events & EV_WRITE) && evbuffer_get_length(bufev->output)) in be_pair_enable()
244 if ((events & EV_WRITE) && partner && in be_pair_enable()
258 if (events & EV_WRITE) { in be_pair_disable()
324 if ((iotype & EV_WRITE) != 0) in be_pair_flush()
331 if (iotype & EV_WRITE) in be_pair_flush()
Devport.c99 #define FDI_HAS_WRITE(fdi) ((fdi)->fdi_what & EV_WRITE)
342 res = EV_READ | EV_WRITE; in evport_dispatch()
347 res |= EV_WRITE; in evport_dispatch()
354 res |= EV_READ|EV_WRITE; in evport_dispatch()
404 fdi->fdi_what &= ~(events &(EV_READ|EV_WRITE)); in evport_del()
423 if ((fdi->fdi_what & (EV_READ|EV_WRITE)) == 0) { in evport_del()
Devmap.c303 old |= EV_WRITE; in evmap_io_add_()
311 if (ev->ev_events & EV_WRITE) { in evmap_io_add_()
313 res |= EV_WRITE; in evmap_io_add_()
381 old |= EV_WRITE; in evmap_io_del_()
390 if (ev->ev_events & EV_WRITE) { in evmap_io_del_()
392 res |= EV_WRITE; in evmap_io_del_()
621 events |= EV_WRITE;
886 if (events & EV_WRITE)
931 if (events & EV_WRITE) {
932 if (!(change->old_events & EV_WRITE))
[all …]
Dbufferevent_filter.c222 bufferevent_enable(underlying, EV_READ|EV_WRITE); in bufferevent_filter_new()
276 if (event & EV_WRITE) in be_filter_enable()
291 if (event & EV_WRITE) in be_filter_disable()
356 if (!(bufev->enabled & EV_WRITE) || in be_filter_process_output()
389 (bufev->enabled & EV_WRITE) && in be_filter_process_output()
398 bufferevent_trigger_nolock_(bufev, EV_WRITE, 0); in be_filter_process_output()
401 (bufev->enabled & EV_WRITE) && in be_filter_process_output()
585 if (iotype & EV_WRITE) { in be_filter_flush()
Dpoll.c217 res |= EV_WRITE; in poll_dispatch()
238 if (!(events & (EV_READ|EV_WRITE|EV_CLOSED))) in poll_add()
277 if (events & EV_WRITE) in poll_add()
301 if (!(events & (EV_READ|EV_WRITE|EV_CLOSED))) in poll_del()
313 if (events & EV_WRITE) in poll_del()
Ddevpoll.c214 which |= EV_WRITE; in devpoll_dispatch()
244 if (events & EV_WRITE) in devpoll_add()
263 if (events & EV_WRITE) in devpoll_del()
282 if ((res & POLLIN) && (old & EV_WRITE)) { in devpoll_del()
Dbufferevent_openssl.c474 if (!(bev->enabled & EV_WRITE)) in clear_rbow()
490 if (bev->enabled & EV_WRITE) in clear_wbor()
727 bufferevent_trigger_nolock_(bev, EV_WRITE, BEV_OPT_DEFER_CALLBACKS); in do_write()
878 while ((bev_ssl->bev.bev.enabled & EV_WRITE) && in consider_writing()
896 !(bev_ssl->bev.bev.enabled & EV_WRITE)) { in consider_writing()
996 wpending = event_pending(&bev->ev_write, EV_WRITE, NULL); in set_open_callbacks()
1006 EV_WRITE|EV_PERSIST|EV_FINALIZE, in set_open_callbacks()
1111 EV_WRITE|EV_PERSIST|EV_FINALIZE, in set_handshake_callbacks()
1164 if (events & EV_WRITE) in be_openssl_enable()
1170 if (events & EV_WRITE) in be_openssl_enable()
[all …]
Dwin32select.c229 if (!(events & (EV_READ|EV_WRITE))) in win32_add()
237 if (events & EV_WRITE) { in win32_add()
255 if (events & EV_WRITE) in win32_del()
351 evmap_io_active_(base, s, EV_WRITE); in win32_dispatch()
361 evmap_io_active_(base, s, EV_WRITE); in win32_dispatch()
Dbufferevent.c94 bufev->be_ops->disable(bufev, EV_WRITE); in bufferevent_suspend_write_()
105 if (!bufev_private->write_suspended && (bufev->enabled & EV_WRITE)) in bufferevent_unsuspend_write_()
106 bufev->be_ops->enable(bufev, EV_WRITE); in bufferevent_unsuspend_write_()
343 bufev->enabled = EV_WRITE; in bufferevent_init_common_()
492 impl_events &= ~EV_WRITE; in bufferevent_enable()
600 if (events & EV_WRITE) { in bufferevent_setwatermark()
644 if (events == EV_WRITE) { in bufferevent_getwatermark()
955 bufferevent_disable(bev, EV_WRITE); in bufferevent_generic_write_timeout_cb()
981 if ((enabled & EV_WRITE) && !bev_p->write_suspended && in bufferevent_generic_adj_timeouts_()
1004 if (event_pending(&bev->ev_write, EV_WRITE, NULL)) { in bufferevent_generic_adj_existing_timeouts_()
Depoll.c382 if (events & EV_WRITE) in epoll_nochangelist_add()
403 if (events & EV_WRITE) in epoll_nochangelist_del()
490 ev = EV_READ | EV_WRITE; in epoll_dispatch()
492 ev = EV_READ | EV_WRITE; in epoll_dispatch()
497 ev |= EV_WRITE; in epoll_dispatch()
Dselect.c199 res |= EV_WRITE; in select_dispatch()
287 if (events & EV_WRITE) in select_add()
315 if (events & EV_WRITE) in select_del()
/external/cronet/third_party/libevent/
Devbuffer.c254 event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); in bufferevent_new()
263 bufev->enabled = EV_WRITE; in bufferevent_new()
286 event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); in bufferevent_setfd()
336 if (size > 0 && (bufev->enabled & EV_WRITE)) in bufferevent_write()
378 if (event & EV_WRITE) { in bufferevent_enable()
394 if (event & EV_WRITE) { in bufferevent_disable()
415 if (event_pending(&bufev->ev_write, EV_WRITE, NULL)) in bufferevent_settimeout()
432 if (events & EV_WRITE) { in bufferevent_setwatermark()
Dpoll.c122 assert(ev->ev_events & EV_WRITE); in poll_check_ok()
187 res |= EV_WRITE; in poll_dispatch()
213 if (!(ev->ev_events & (EV_READ|EV_WRITE))) in poll_add()
292 if (ev->ev_events & EV_WRITE) { in poll_add()
319 if (!(ev->ev_events & (EV_READ|EV_WRITE))) in poll_del()
333 if (ev->ev_events & EV_WRITE) { in poll_del()
Devport.c368 res |= EV_WRITE; in evport_dispatch()
374 res |= EV_READ|EV_WRITE; in evport_dispatch()
389 if ((res & EV_WRITE) && ((ev = fdi->fdi_wevt) != NULL)) { in evport_dispatch()
437 if (ev->ev_events & EV_WRITE) in evport_add()
478 if (ev->ev_events & EV_WRITE) in evport_del()
Ddevpoll.c267 which |= EV_WRITE; in devpoll_dispatch()
282 event_active(evwrite, EV_WRITE, 1); in devpoll_dispatch()
323 if (ev->ev_events & EV_WRITE) { in devpoll_add()
337 if (ev->ev_events & EV_WRITE) in devpoll_add()
362 if (ev->ev_events & EV_WRITE) in devpoll_del()
Depoll.c242 event_active(evwrite, EV_WRITE, 1); in epoll_dispatch()
294 if (ev->ev_events & EV_WRITE) in epoll_add()
305 if (ev->ev_events & EV_WRITE) in epoll_add()
333 if (ev->ev_events & EV_WRITE) in epoll_del()
Dselect.c133 assert(sop->event_w_by_fd[i]->ev_events & EV_WRITE); in check_selectop()
191 res |= EV_WRITE; in select_dispatch()
302 if (ev->ev_events & EV_WRITE) { in select_add()
334 if (ev->ev_events & EV_WRITE) { in select_del()
/external/libchrome/base/message_loop/
Dmessage_pump_libevent.cc145 event_mask |= EV_WRITE; in WatchFileDescriptor()
154 int old_interest_mask = evt->ev_events & (EV_READ | EV_WRITE | EV_PERSIST); in WatchFileDescriptor()
318 if ((flags & (EV_READ | EV_WRITE)) == (EV_READ | EV_WRITE)) { in OnLibeventNotification()
328 } else if (flags & EV_WRITE) { in OnLibeventNotification()
/external/libevent/test/
Dregress_ssl.c348 bufferevent_enable(bev, EV_WRITE); in respond_to_number()
359 bufferevent_disable(bev, EV_WRITE); in done_writing_cb()
525 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
526 bufferevent_enable(bev2, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
547 bufferevent_enable(bev1, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
548 bufferevent_disable(bev2, EV_READ|EV_WRITE); in regress_bufferevent_openssl()
575 bufferevent_enable(bev, EV_READ|EV_WRITE); in acceptcb_deferred()
603 bufferevent_disable(bev, EV_READ|EV_WRITE); in acceptcb()
605 bufferevent_enable(bev, EV_READ|EV_WRITE); in acceptcb()
789 bufferevent_enable(bev, EV_READ|EV_WRITE); in regress_bufferevent_openssl_connect()
[all …]
Dregress_bufferevent.c181 tt_int_op(bufferevent_get_enabled(bev1), ==, EV_WRITE); in test_bufferevent_impl()
182 tt_int_op(bufferevent_get_enabled(bev2), ==, EV_WRITE|EV_READ); in test_bufferevent_impl()
189 tt_int_op(bufferevent_flush(bev1, EV_WRITE, flush), >=, 0); in test_bufferevent_impl()
433 bufferevent_getwatermark(bev2, EV_WRITE, &low, NULL); in test_bufferevent_watermarks_impl()
448 bufferevent_setwatermark(bev1, EV_WRITE, 100, 2000); in test_bufferevent_watermarks_impl()
450 bufferevent_getwatermark(bev1, EV_WRITE, &low, &high); in test_bufferevent_watermarks_impl()
455 int r = bufferevent_getwatermark(bev1, EV_WRITE | EV_READ, &low, &high); in test_bufferevent_watermarks_impl()
467 tt_assert(!event_pending(&bev2->ev_write, EV_WRITE, NULL)); in test_bufferevent_watermarks_impl()
620 bufferevent_disable(bev,EV_READ|EV_WRITE); in sender_writecb()
835 bufferevent_enable(bev, EV_READ|EV_WRITE); in test_bufferevent_connect_fail_eventcb()
[all …]
Dtest-dumpevents.c110 ev[0] = event_new(base, pair1[0], EV_WRITE, callback1, NULL); in main()
112 ev[2] = event_new(base, pair2[0], EV_WRITE|EV_PERSIST, callback2, NULL); in main()
143 event_active(ev[11], EV_READ|EV_WRITE|EV_TIMEOUT, 1); in main()
/external/libevent/sample/
Dle-proxy.c73 bufferevent_setwatermark(partner, EV_WRITE, MAX_OUTPUT/2, in readcb()
87 bufferevent_setwatermark(bev, EV_WRITE, 0, 0); in drained_writecb()
206 bufferevent_enable(b_in, EV_READ|EV_WRITE); in accept_cb()
207 bufferevent_enable(b_out, EV_READ|EV_WRITE); in accept_cb()
/external/cronet/net/third_party/quiche/src/quiche/quic/bindings/
Dquic_libevent.cc25 ((events & EV_WRITE) ? kSocketEventWritable : 0); in LibeventEventMaskToQuicEvents()
30 ((events & kSocketEventWritable) ? EV_WRITE : 0); in QuicEventsToLibeventEventMask()
144 event_assign(&write_event_, loop_->base(), fd, EV_WRITE, callback, this); in Registration()
169 event_active(&write_event_, EV_WRITE, 0); in ArtificiallyNotify()
/external/cronet/base/message_loop/
Dmessage_pump_libevent.cc221 event_mask |= EV_WRITE; in WatchFileDescriptor()
230 int old_interest_mask = evt->ev_events & (EV_READ | EV_WRITE | EV_PERSIST); in WatchFileDescriptor()
446 if ((flags & (EV_READ | EV_WRITE)) == (EV_READ | EV_WRITE)) { in OnLibeventNotification()
456 } else if (flags & EV_WRITE) { in OnLibeventNotification()

123