Home
last modified time | relevance | path

Searched refs:event_new (Results 1 – 16 of 16) sorted by relevance

/external/libevent/test/
Dtest-dumpevents.c110 ev[0] = event_new(base, pair1[0], EV_WRITE, callback1, NULL); in main()
111 ev[1] = event_new(base, pair1[1], EV_READ|EV_PERSIST, callback1, NULL); in main()
112 ev[2] = event_new(base, pair2[0], EV_WRITE|EV_PERSIST, callback2, NULL); in main()
113 ev[3] = event_new(base, pair2[1], EV_READ, callback2, NULL); in main()
119 ev[7] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
120 ev[8] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
121 ev[9] = event_new(base, -1, EV_PERSIST, callback2, NULL); in main()
124 ev[10] = event_new(base, -1, 0, callback1, NULL); in main()
125 ev[11] = event_new(base, -1, 0, callback2, NULL); in main()
Dregress_et.c121 ev = event_new(base, pair[1], EV_READ|EV_ET|EV_PERSIST, read_cb, &ev); in test_edgetriggered()
172 ev_et = event_new(base, data->pair[0], EV_READ|EV_ET, read_cb, ev_et); in test_edgetriggered_mix_error()
174 ev_lt = event_new(base, data->pair[0], EV_READ, read_cb, ev_lt); in test_edgetriggered_mix_error()
Dregress.c431 closeev = event_new(base, -1, EV_TIMEOUT, simpleclose_close_fd_cb, in test_simpleclose()
433 rev = event_new(base, pair1[1], EV_READ, record_event_cb, in test_simpleclose()
436 wev = event_new(base, pair2[1], EV_WRITE, record_event_cb, in test_simpleclose()
1410 struct event *ev = event_new(base, -1, EV_READ, event_selfarg_cb, in test_event_new_selfarg()
1782 ev1 = event_new(data->base, data->pair[0], EV_READ|EV_PERSIST, read_and_drain_cb, NULL); in test_active_later()
1783 ev2 = event_new(data->base, data->pair[1], EV_WRITE|EV_PERSIST, write_a_byte_cb, NULL); in test_active_later()
1881 ev[0] = event_new(base, data->pair[0], EV_READ|EV_PERSIST, in test_event_remove_timeout()
2798 r = event_new(data->base, data->pair[0], EV_READ, simple_read_cb, in test_event_pending()
2800 w = event_new(data->base, data->pair[1], EV_WRITE, simple_write_cb, in test_event_pending()
2858 e = event_new(data->base, data->pair[0], EV_READ, dfd_cb, &i); in test_event_closed_fd_poll()
[all …]
Dtest-closed.c102 ev = event_new(base, pair[1], EV_CLOSED | EV_TIMEOUT, closed_cb, event_self_cbarg()); in main()
Dtest-ratelim.c185 event_new(base, -1, EV_PERSIST, check_bucket_levels_cb, bev); in echo_listenercb()
366 periodic_level_check = event_new(base, -1, EV_PERSIST, check_group_bucket_levels_cb, NULL); in test_ratelimiting()
370 group_drain_event = event_new(base, -1, EV_PERSIST, group_drain_cb, NULL); in test_ratelimiting()
Dregress_finalize.c278 evc2.ev2 = evc1.ev = event_new(base, -1, EV_PERSIST, timer_callback_2, &evc1); in test_fin_within_cb()
279 evc1.ev2 = evc2.ev = event_new(base, -1, EV_PERSIST, timer_callback_2, &evc2); in test_fin_within_cb()
Dtest-changelist.c192 ev = event_new(base,pair[1],EV_WRITE | EV_PERSIST, write_cb, &ev); in main()
Dregress_thread.c195 notification_event = event_new(base, in thread_basic()
Dregress_buffer.c1077 wev = event_new(base, pair[0], EV_WRITE|EV_PERSIST, in test_evbuffer_add_file()
1079 rev = event_new(base, pair[1], EV_READ|EV_PERSIST, in test_evbuffer_add_file()
/external/libevent/sample/
Devent-read-fifo.c137 evfifo = event_new(base, (evutil_socket_t)socket, EV_READ|EV_PERSIST, fifo_read, in main()
144 evfifo = event_new(base, socket, EV_READ|EV_PERSIST, fifo_read, in main()
/external/libevent/include/event2/
Devent.h970 #define evtimer_new(b, cb, arg) event_new((b), -1, 0, (cb), (arg))
987 event_new((b), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
1080 struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *);
/external/libevent/
Dwhatsnew-2.1.txt105 Libevent 2.0 added an event_new() function to construct a new struct
106 event on the heap. Unfortunately, with event_new(), there was no
112 In other words, there was no easy way for event_new() to set up an
118 evp = event_new(base, fd, EV_READ, callback,
221 event_new() and event_assign() along with EV_READ, EV_WRITE, and the
Dwhatsnew-2.0.txt105 can use event_new().
128 ev = event_new(base, fd, EV_READ, cb, NULL);
198 ev = event_new(base, fd, EV_READ|EV_PERSIST, cb, NULL);
280 you set during event_new() or event_assign().
Devent.c2158 event_new(struct event_base *base, evutil_socket_t fd, short events, void (*cb)(evutil_socket_t, sh… in event_new() function
DChangeLog-2.01202 …o New functions (event_assign, event_new, event_free) for use by apps that want to be safely threa…
1214 … to manipulate timer and signal events, analagous to the now-recommended event_assign and event_new
DChangeLog1645 event_new(). (ed36e6a Ross Lagerwall, fa931bb, 09a1906, 1338e6c,