Home
last modified time | relevance | path

Searched refs:event_set (Results 1 – 14 of 14) sorted by relevance

/external/chromium/third_party/libevent/
Dpoll.c60 struct pollfd *event_set; member
112 assert(pop->event_set[idx].fd == i); in poll_check_ok()
113 if (pop->event_set[idx].events & POLLIN) { in poll_check_ok()
119 if (pop->event_set[idx].events & POLLOUT) { in poll_check_ok()
127 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok()
147 res = poll(pop->event_set, nfds, msec); in poll_dispatch()
172 what = pop->event_set[i].revents; in poll_dispatch()
229 tmp_event_set = realloc(pop->event_set, in poll_add()
235 pop->event_set = tmp_event_set; in poll_add()
281 pfd = &pop->event_set[i]; in poll_add()
[all …]
Devent.h472 #define evtimer_set(ev, cb, arg) event_set(ev, -1, 0, cb, arg)
500 #define timeout_set(ev, cb, arg) event_set(ev, -1, 0, cb, arg)
515 event_set(ev, x, EV_SIGNAL|EV_PERSIST, cb, arg)
546 void event_set(struct event *, int, short, void (*)(int, short, void *), void *);
Devbuffer.c253 event_set(&bufev->ev_read, fd, EV_READ, bufferevent_readcb, bufev); in bufferevent_new()
254 event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); in bufferevent_new()
285 event_set(&bufev->ev_read, fd, EV_READ, bufferevent_readcb, bufev); in bufferevent_setfd()
286 event_set(&bufev->ev_write, fd, EV_WRITE, bufferevent_writecb, bufev); in bufferevent_setfd()
Dhttp.c351 event_set(&evcon->ev, evcon->fd, EV_WRITE, evhttp_write, evcon); in evhttp_write_buffer()
897 event_set(&evcon->ev, evcon->fd, EV_READ, evhttp_read, evcon); in evhttp_read_body()
1107 event_set(&evcon->close_ev, evcon->fd, EV_READ, in evhttp_connection_start_detectclose()
1783 event_set(&evcon->ev, evcon->fd, EV_WRITE, evhttp_connectioncb, evcon); in evhttp_connection_connect()
1849 event_set(&evcon->ev, evcon->fd, EV_READ, evhttp_read, evcon); in evhttp_start_read()
2289 event_set(ev, fd, EV_READ | EV_PERSIST, accept_socket, http); in evhttp_accept_socket()
Devent.c596 event_set(&eonce->ev, fd, events, event_once_cb, eonce); in event_base_once()
615 event_set(struct event *ev, int fd, short events, in event_set() function
Dsignal.c129 event_set(&base->sig.ev_signal, base->sig.ev_signal_pair[1], in evsignal_init()
Devdns.c1239 event_set(&port->event, port->socket, EV_READ | EV_PERSIST, in server_port_flush()
1256 event_set(&ns->event, ns->socket, EV_READ | (waiting ? EV_WRITE : 0) | EV_PERSIST, in nameserver_write_waiting()
1494 event_set(&port->event, port->socket, EV_READ | EV_PERSIST, in evdns_add_server_port()
1754event_set(&port->event, port->socket, (port->closing?0:EV_READ) | EV_WRITE | EV_PERSIST, server_po… in evdns_server_request_respond()
2140 event_set(&ns->event, ns->socket, EV_READ | EV_PERSIST, nameserver_ready_callback, ns); in _evdns_nameserver_add_impl()
/external/chromium/third_party/libevent/test/
Dregress.c331 event_set(&read_evs[i], pair[0], in test_registerfds()
335 event_set(&write_evs[i], pair[1], in test_registerfds()
376 event_set(&ev, pair[1], EV_READ, simple_read_cb, &ev); in test_simpleread()
392 event_set(&ev, pair[0], EV_WRITE, simple_write_cb, &ev); in test_simplewrite()
415 event_set(&ev, pair[0], EV_WRITE, multiple_write_cb, &ev); in test_multiple()
418 event_set(&ev2, pair[1], EV_READ, multiple_read_cb, &ev2); in test_multiple()
444 event_set(&ev, pair[0], EV_WRITE|EV_PERSIST, multiple_write_cb, &ev); in test_persistent()
447 event_set(&ev2, pair[1], EV_READ|EV_PERSIST, multiple_read_cb, &ev2); in test_persistent()
472 event_set(&r1.ev, pair[0], EV_READ, combined_read_cb, &r1); in test_combined()
473 event_set(&w1.ev, pair[0], EV_WRITE, combined_write_cb, &w1); in test_combined()
[all …]
Dtest-eof.c78 event_set(&ev, pair[1], EV_READ, read_cb, &ev); in main()
Dtest-weof.c76 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev); in main()
Dbench.c91 event_set(&events[i], cp[0], EV_READ | EV_PERSIST, read_cb, (void *) i); in run_once()
/external/chromium/base/
Dmessage_pump_libevent.cc130 event_set(wakeup_event_, wakeup_pipe_out_, EV_READ | EV_PERSIST, in Init()
193 event_set(evt.get(), fd, event_mask, OnLibeventNotification, delegate); in WatchFileDescriptor()
269 event_set(timer_event.get(), -1, 0, timer_callback, event_base_); in Run()
/external/chromium/third_party/libevent/sample/
Devent-test.c125 event_set(&evfifo, (int)socket, EV_READ, fifo_read, &evfifo); in main()
127 event_set(&evfifo, socket, EV_READ, fifo_read, &evfifo); in main()
Dsignal-test.c54 event_set(&signal_int, SIGINT, EV_SIGNAL|EV_PERSIST, signal_cb, in main()