Searched refs:event (Results 1 - 25 of 38) sorted by relevance

12

/tldk/test/gtest/
H A Dtest_tle_udp_event.cpp45 event = tle_event_alloc(NULL, (void *) &fake_data);
46 EXPECT_EQ(event, (struct tle_event *) NULL);
58 event = tle_event_alloc(evq, (void *) &fake_data);
59 ASSERT_NE(event, (struct tle_event *) NULL);
62 tle_event_free(event);
73 event = tle_event_alloc(evq, (void *) &fake_data);
74 ASSERT_NE(event, (struct tle_event *) NULL);
84 tle_event_free(event);
91 ASSERT_EQ(event->state, TLE_SEV_IDLE);
98 tle_event_active(event, state
[all...]
H A Dtest_tle_udp_event.h64 struct tle_event *event; member in class:udp_event
86 event = tle_event_alloc(evq, (void *) &fake_data);
87 ASSERT_NE(event, (struct tle_event *) NULL);
92 tle_event_free(event);
/tldk/app/nginx/src/event/modules/
H A Dngx_poll_module.c15 static ngx_int_t ngx_poll_add_event(ngx_event_t *ev, ngx_int_t event,
17 static ngx_int_t ngx_poll_del_event(ngx_event_t *ev, ngx_int_t event,
36 ngx_poll_add_event, /* add an event */
37 ngx_poll_del_event, /* delete an event */
38 ngx_poll_add_event, /* enable an event */
39 ngx_poll_del_event, /* disable an event */
114 ngx_poll_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
125 "poll event fd:%d ev:%i is already set", c->fd, event);
129 if (event
166 ngx_poll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_win32_select_module.c15 static ngx_int_t ngx_select_add_event(ngx_event_t *ev, ngx_int_t event,
17 static ngx_int_t ngx_select_del_event(ngx_event_t *ev, ngx_int_t event,
45 ngx_select_add_event, /* add an event */
46 ngx_select_del_event, /* delete an event */
47 ngx_select_add_event, /* enable an event */
48 ngx_select_del_event, /* disable an event */
127 ngx_select_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
134 "select add event fd:%d ev:%i", c->fd, event);
138 "select event f
180 ngx_select_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_devpoll_module.c40 static ngx_int_t ngx_devpoll_add_event(ngx_event_t *ev, ngx_int_t event,
42 static ngx_int_t ngx_devpoll_del_event(ngx_event_t *ev, ngx_int_t event,
44 static ngx_int_t ngx_devpoll_set_event(ngx_event_t *ev, ngx_int_t event,
87 ngx_devpoll_add_event, /* add an event */
88 ngx_devpoll_del_event, /* delete an event */
89 ngx_devpoll_add_event, /* enable an event */
90 ngx_devpoll_del_event, /* disable an event */
218 ngx_devpoll_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
225 event = (event
241 ngx_devpoll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
291 ngx_devpoll_set_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_select_module.c15 static ngx_int_t ngx_select_add_event(ngx_event_t *ev, ngx_int_t event,
17 static ngx_int_t ngx_select_del_event(ngx_event_t *ev, ngx_int_t event,
44 ngx_select_add_event, /* add an event */
45 ngx_select_del_event, /* delete an event */
46 ngx_select_add_event, /* enable an event */
47 ngx_select_del_event, /* disable an event */
125 ngx_select_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
132 "select add event fd:%d ev:%i", c->fd, event);
136 "select event f
171 ngx_select_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_eventport_module.c40 int portev_events; /* event data is source specific */
41 ushort_t portev_source; /* event source */
139 static ngx_int_t ngx_eventport_add_event(ngx_event_t *ev, ngx_int_t event,
141 static ngx_int_t ngx_eventport_del_event(ngx_event_t *ev, ngx_int_t event,
178 ngx_eventport_add_event, /* add an event */
179 ngx_eventport_del_event, /* delete an event */
180 ngx_eventport_add_event, /* enable an event */
181 ngx_eventport_del_event, /* disable an event */
299 "close() event port failed");
312 ngx_eventport_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_ argument
361 ngx_eventport_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_epoll_module.c59 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event);
61 int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event) argument
88 uint64_t obj; /* what iocb this event came from */
89 int64_t res; /* result code for this event */
113 static ngx_int_t ngx_epoll_add_event(ngx_event_t *ev, ngx_int_t event,
115 static ngx_int_t ngx_epoll_del_event(ngx_event_t *ev, ngx_int_t event,
185 ngx_epoll_add_event, /* add an event */
186 ngx_epoll_del_event, /* delete an event */
187 ngx_epoll_add_event, /* enable an event */
188 ngx_epoll_del_event, /* disable an event */
579 ngx_epoll_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
643 ngx_epoll_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
951 struct io_event event[64]; local
[all...]
H A Dngx_kqueue_module.c24 static ngx_int_t ngx_kqueue_add_event(ngx_event_t *ev, ngx_int_t event,
26 static ngx_int_t ngx_kqueue_del_event(ngx_event_t *ev, ngx_int_t event,
82 ngx_kqueue_add_event, /* add an event */
83 ngx_kqueue_del_event, /* delete an event */
84 ngx_kqueue_add_event, /* enable an event */
85 ngx_kqueue_del_event, /* disable an event */
283 ngx_kqueue_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
310 ngx_event_ident(ev->data), event);
325 "previous event on #%d were not passed in kernel", c->fd);
332 rc = ngx_kqueue_set_event(ev, event, EV_AD
339 ngx_kqueue_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
[all...]
H A Dngx_iocp_module.c17 static ngx_int_t ngx_iocp_add_event(ngx_event_t *ev, ngx_int_t event,
61 ngx_iocp_add_event, /* add an event */
62 NULL, /* delete an event */
63 NULL, /* enable an event */
64 NULL, /* disable an event */
194 ngx_iocp_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t key) argument
299 ev = ovlp->event;
301 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, err, "iocp event:%p", ev);
314 "iocp: aborted event %p", ev);
344 "iocp event handle
[all...]
/tldk/app/nginx/src/core/
H A Dngx_thread_pool.h22 ngx_event_t event; member in struct:ngx_thread_task_s
H A Dngx_open_file_cache.c231 || (file->event == NULL
311 if (file->event) {
391 file->event = NULL;
949 * we ignore any possible event setting error and
961 || file->event
970 file->event = ngx_calloc(sizeof(ngx_event_t), log);
971 if (file->event== NULL) {
977 ngx_free(file->event);
978 file->event = NULL;
986 file->event
[all...]
H A Dngx_resolver.c156 r->event = ngx_calloc(sizeof(ngx_event_t), cf->log);
157 if (r->event == NULL) {
189 r->event->handler = ngx_resolver_resend_handler;
190 r->event->data = r;
191 r->event->log = &cf->cycle->new_log;
302 if (r->event) {
303 if (r->event->timer_set) {
304 ngx_del_timer(r->event);
307 ngx_free(r->event);
353 if (ctx->event) {
4386 ngx_int_t event; local
4470 ngx_int_t event; local
[all...]
H A Dngx_thread_pool.c116 "the configured event method cannot be used with thread pools");
194 task.event.active = 0;
233 if (task->event.active) {
252 task->event.active = 1;
367 ngx_event_t *event; local
386 event = &task->event;
389 event->complete = 1;
390 event->active = 0;
392 event
[all...]
H A Dngx_resolver.h150 ngx_event_t *event; member in struct:ngx_resolver_s
154 /* event ident must be after 3 pointers as in ngx_connection_t */
200 /* event ident must be after 3 pointers as in ngx_connection_t */
223 ngx_event_t *event; member in struct:ngx_resolver_ctx_s
H A Dngx_open_file_cache.h87 ngx_event_t *event; member in struct:ngx_cached_open_file_s
112 /* ngx_connection_t stub to allow use c->fd as event ident */
/tldk/app/nginx/src/os/unix/
H A Dngx_channel.h30 ngx_int_t event, ngx_event_handler_pt handler);
H A Dngx_linux_aio_read.c39 aio->event.data = aio;
40 aio->event.ready = 1;
41 aio->event.log = file->log;
67 ev = &aio->event;
145 "aio event handler fd:%d %V", aio->fd, &aio->file->name);
H A Dngx_darwin_config.h73 #include <sys/event.h>
H A Dngx_file_aio_read.c24 * kqueue EVFILT_AIO filter is level triggered only: an event repeats
51 aio->event.data = aio;
52 aio->event.ready = 1;
53 aio->event.log = file->log;
78 ev = &aio->event;
211 "aio event handler fd:%d %V", aio->fd, &aio->file->name);
H A Dngx_freebsd_config.h87 #include <sys/event.h>
/tldk/app/nginx/src/tldk/
H A Dtldk_event.c55 * TLDK event module implementation
59 tldk_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
66 FE_TRACE("%s(ev=%p,event=%#lx,flags=%#lx): fd=%d;\n",
67 __func__, ev, event, flags, c->fd);
73 if (event == NGX_READ_EVENT) {
77 } else if (event == NGX_WRITE_EVENT) {
88 tldk_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) argument
95 FE_TRACE("%s(ev=%p,event=%#lx,flags=%#lx): fd=%d;\n",
96 __func__, ev, event, flags, c->fd);
106 if (event
[all...]
/tldk/app/nginx/src/event/
H A Dngx_event.h23 ngx_event_t *event; member in struct:__anon83
41 * the event was passed or would be passed to a kernel;
48 /* the ready event; in aio mode 0 means that no operation can be posted */
89 * read: bytes to read when event is ready
90 * or lowat when event is set with NGX_LOWAT_EVENT flag
91 * write: available space in buffer when event is ready
92 * or lowat when event is set with NGX_LOWAT_EVENT flag
131 * the event thread context, we store it here
140 /* event should not cross cache line in SMP */
171 ngx_event_t event; member in struct:ngx_event_aio_s
[all...]
H A Dngx_event_connect.c27 ngx_int_t event; local
279 event = NGX_CLEAR_EVENT;
285 event = NGX_LEVEL_EVENT;
288 if (ngx_add_event(rev, NGX_READ_EVENT, event) != NGX_OK) {
296 if (ngx_add_event(wev, NGX_WRITE_EVENT, event) != NGX_OK) {
/tldk/lib/libtle_l4p/
H A DMakefile35 SRCS-y += event.c

Completed in 14 milliseconds

12