Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 74) sorted by relevance

123

/libevent-2.1.12/
H A Dminheap-internal.h41 struct event** p;
51 static inline struct event* min_heap_top_(min_heap_t* s);
54 static inline struct event* min_heap_pop_(min_heap_t* s);
71 int min_heap_push_(min_heap_t* s, struct event* e) in min_heap_push_()
79 struct event* min_heap_pop_(min_heap_t* s) in min_heap_pop_()
83 struct event* e = *s->p; in min_heap_pop_()
91 int min_heap_elt_is_top_(const struct event *e) in min_heap_elt_is_top_()
96 int min_heap_erase_(min_heap_t* s, struct event* e) in min_heap_erase_()
100 struct event *last = s->p[--s->n]; in min_heap_erase_()
117 int min_heap_adjust_(min_heap_t *s, struct event *e) in min_heap_adjust_()
[all …]
H A Devent.c169 struct event *ev);
841 struct event *ev; in event_base_free_()
2193 struct event *
2207 struct event *
2210 struct event *ev; in event_new()
2375 event_pending(const struct event *ev, short event, struct timeval *tv) in event_pending() argument
3147 struct event *ev; in timeout_next()
3185 struct event *ev; in timeout_process()
3334 struct event *e; in insert_common_timeout_inorder()
3685 struct event *ev; in event_base_foreach_event_nolock_()
[all …]
H A Devmap-internal.h38 struct event;
62 int evmap_io_add_(struct event_base *base, evutil_socket_t fd, struct event *ev);
71 int evmap_io_del_(struct event_base *base, evutil_socket_t fd, struct event *ev);
84 int evmap_signal_add_(struct event_base *base, int signum, struct event *ev);
85 int evmap_signal_del_(struct event_base *base, int signum, struct event *ev);
H A Devent-internal.h171 struct event timeout_event;
202 struct event ev;
338 struct event th_notify;
408 int event_add_nolock_(struct event *ev,
424 int event_del_nolock_(struct event *ev, int blocking);
425 int event_remove_timer_nolock_(struct event *ev);
427 void event_active_nolock_(struct event *ev, int res, short count);
441 void event_active_later_(struct event *ev, int res);
442 void event_active_later_nolock_(struct event *ev, int res);
H A DMakefile.am130 event-config.h.cmake \
143 make-event-config.sed \
224 BUILT_SOURCES += include/event2/event-config.h
226 include/event2/event-config.h: config.h make-event-config.sed
228 $(AM_V_at)$(SED) -f $(srcdir)/make-event-config.sed < config.h > $@T
238 event.c \
295 WIN32-Code/nmake/event2/event-config.h \
306 event-internal.h \
328 include/event.h \
343 DISTCLEANFILES += *~ libevent.pc libevent_core.pc libevent_extra.pc ./include/event2/event-config.h
H A Dwhatsnew-2.1.txt103 number of priorities set in the event base.
109 struct event ev;
113 event so that the event itself would be its callback argument.
117 struct event *evp;
141 every event currently pending or active on an event base, and invoke a
143 or add or remove anything to the event base.
167 1.3.1. Why event finalization?
222 other event flags.
225 will not block on that event, even when the event's callback is
229 clean up the event.
[all …]
H A Dmake_epoll_table.py34 for item, event in [(rc,"EPOLLIN"),
38 delevents.append(event)
39 if event in modevents:
40 modevents.remove(event)
H A Devthread_win32.c181 HANDLE event; member
199 if ((cond->event = CreateEvent(NULL,TRUE,FALSE,NULL)) == NULL) { in evthread_win32_cond_alloc()
213 CloseHandle(cond->event); in evthread_win32_cond_free()
227 SetEvent(cond->event); in evthread_win32_cond_signal()
254 res = WaitForSingleObject(cond->event, ms); in evthread_win32_cond_wait()
283 ResetEvent(cond->event); in evthread_win32_cond_wait()
293 ResetEvent(cond->event); in evthread_win32_cond_wait()
H A DCONTRIBUTING.md22 ./checkpatch.sh -d event.c
23 ./checkpatch.sh -d < event.c
26 ./checkpatch.sh -f event.c
27 ./checkpatch.sh -f < event.c
H A Dwhatsnew-2.0.txt67 The core event logic is now in event2/event.h. The "evbuffer" functions
113 #include <event.h>
115 struct event *ev = malloc(sizeof(struct event));
125 #include <event2/event.h>
127 struct event *ev;
195 up an event like this:
196 struct event *ev;
209 one EV_WRITE event per socket, per event base. This restriction is no
239 the event loop.
274 event-level errors in your code.
[all …]
H A Devmap.c280 struct event *old_ev; in evmap_io_add_()
424 struct event *ev; in evmap_io_active_()
505 struct event *ev; in evmap_signal_active_()
614 struct event *ev;
670 struct event *ev;
955 struct event *ev;
960 EVUTIL_ASSERT_LIST_OK(&io_info->events, event, ev_io_next);
988 struct event *ev;
990 EVUTIL_ASSERT_LIST_OK(&sig_info->events, event, ev_signal_next);
1025 struct event *ev;
[all …]
H A Dbufferevent_sock.c149 bufferevent_readcb(evutil_socket_t fd, short event, void *arg) in bufferevent_readcb() argument
160 if (event == EV_TIMEOUT) { in bufferevent_readcb()
230 bufferevent_writecb(evutil_socket_t fd, short event, void *arg) in bufferevent_writecb() argument
241 if (event == EV_TIMEOUT) { in bufferevent_writecb()
568 be_socket_enable(struct bufferevent *bufev, short event) in be_socket_enable() argument
570 if (event & EV_READ && in be_socket_enable()
573 if (event & EV_WRITE && in be_socket_enable()
580 be_socket_disable(struct bufferevent *bufev, short event) in be_socket_disable() argument
583 if (event & EV_READ) { in be_socket_disable()
588 if ((event & EV_WRITE) && ! bufev_p->connecting) { in be_socket_disable()
H A Dbufferevent.c482 bufferevent_enable(struct bufferevent *bufev, short event) in bufferevent_enable() argument
485 short impl_events = event; in bufferevent_enable()
494 bufev->enabled |= event; in bufferevent_enable()
556 bufferevent_disable_hard_(struct bufferevent *bufev, short event) in bufferevent_disable_hard_() argument
562 bufev->enabled &= ~event; in bufferevent_disable_hard_()
565 if (bufev->be_ops->disable(bufev, event) < 0) in bufferevent_disable_hard_()
573 bufferevent_disable(struct bufferevent *bufev, short event) in bufferevent_disable() argument
578 bufev->enabled &= ~event; in bufferevent_disable()
580 if (bufev->be_ops->disable(bufev, event) < 0) in bufferevent_disable()
730 struct event *e = &bufev_private->rate_limiting->refill_bucket_event; in bufferevent_decref_and_unlock_()
[all …]
H A Dmake-event-config.sed1 # Sed script to postprocess config.h into event-config.h.
4 /* event2/event-config.h\
19 #endif /* event2/event-config.h */
/libevent-2.1.12/include/event2/
H A Devent.h276 struct event struct
334 void event_debug_unassign(struct event *);
1141 void event_free(struct event *);
1245 int event_remove_timer(struct event *ev);
1259 int event_del(struct event *);
1267 int event_del_noblock(struct event *ev);
1274 int event_del_block(struct event *ev);
1334 int event_initialized(const struct event *ev);
1358 short event_get_events(const struct event *ev);
1387 void event_get_assignment(const struct event *event,
[all …]
H A Devent_struct.h105 struct event;
116 void (*evcb_evfinalize)(struct event *, void *);
123 struct event { struct
128 TAILQ_ENTRY(event) ev_next_with_common_timeout; argument
138 LIST_ENTRY (event) ev_io_next; argument
144 LIST_ENTRY (event) ev_signal_next;
156 TAILQ_HEAD (event_list, event); argument
166 LIST_HEAD (event_dlist, event);
/libevent-2.1.12/test/
H A Dregress.c102 struct event *ev;
238 struct event ev;
298 struct event ev; in test_simpleread()
320 struct event ev; in test_simplewrite()
616 struct event ev; in test_simpletimeout()
653 struct event ev; in test_persistent_timeout()
672 struct event ev; in test_persistent_timeout_jump()
718 struct event ev; in test_persistent_active_timeout()
758 struct event ev;
1056 struct event ev; in test_del_wait()
[all …]
H A Dregress_et.c63 read_cb(evutil_socket_t fd, short event, void *arg) in read_cb() argument
71 if (event & EV_ET) in read_cb()
84 struct event *ev = NULL; in test_edgetriggered()
140 struct event *ev_et=NULL, *ev_lt=NULL; in test_edgetriggered_mix_error()
183 read_notification_cb(evutil_socket_t fd, short event, void *arg) in read_notification_cb() argument
186 last_read_notification_was_et = (event & EV_ET); in read_notification_cb()
192 write_notification_cb(evutil_socket_t fd, short event, void *arg) in write_notification_cb() argument
195 last_write_notification_was_et = (event & EV_ET); in write_notification_cb()
208 struct event *read_ev = NULL; in test_edge_triggered_multiple_events()
209 struct event *write_ev = NULL; in test_edge_triggered_multiple_events()
H A Dtest-changelist.c138 write_cb(evutil_socket_t fd, short event, void *arg) in write_cb() argument
143 event_del(*(struct event**)arg); in write_cb()
146 event_add(*(struct event**)arg,NULL); in write_cb()
149 event_del(*(struct event**)arg); in write_cb()
154 timeout_cb(evutil_socket_t fd, short event, void *arg) in timeout_cb() argument
157 event_del(*(struct event**)arg); in timeout_cb()
164 struct event* ev; in main()
165 struct event* timeout; in main()
H A Dregress_finalize.c57 event_finalize_callback_1(struct event *ev, void *arg) in event_finalize_callback_1()
78 struct event *ev; in test_fin_cb_invoked()
79 struct event ev2; in test_fin_cb_invoked()
195 struct event *ev, *ev2; in test_fin_free_finalize()
232 struct event *ev;
233 struct event *ev2;
237 event_finalize_callback_2(struct event *ev, void *arg) in event_finalize_callback_2()
294 event_finalize_callback_free(struct event *ev, void *arg) in event_finalize_callback_free()
315 struct event *ev; in test_fin_debug_use_after_free()
354 struct event *ev1, *ev2;
H A Dtest-closed.c55 closed_cb(evutil_socket_t fd, short event, void *arg) in closed_cb() argument
57 if (EV_TIMEOUT & event) { in closed_cb()
62 if (EV_CLOSED & event) { in closed_cb()
76 struct event *ev; in main()
H A Dregress_minheap.c36 set_random_timeout(struct event *ev) in set_random_timeout()
58 struct event *inserted[1024]; in test_heap_randomized()
59 struct event *e, *last_e; in test_heap_randomized()
65 inserted[i] = malloc(sizeof(struct event)); in test_heap_randomized()
H A Dtest-eof.c57 read_cb(evutil_socket_t fd, short event, void *arg) in read_cb() argument
62 if (EV_TIMEOUT & event) { in read_cb()
84 struct event ev; in main()
/libevent-2.1.12/sample/
H A Devent-read-fifo.c34 fifo_read(evutil_socket_t fd, short event, void *arg) in fifo_read() argument
38 struct event *ev = arg; in fifo_read()
44 (int)fd, event, arg); in fifo_read()
77 signal_cb(evutil_socket_t fd, short event, void *arg) in signal_cb() argument
87 struct event *evfifo; in main()
104 struct event *signal_int; in main()
H A Dsignal-test.c32 signal_cb(evutil_socket_t fd, short event, void *arg) in signal_cb() argument
34 struct event *signal = arg; in signal_cb()
47 struct event *signal_int = NULL; in main()

123