Lines Matching defs:ioloop
5 #include "ioloop-private.h"
6 #include "ioloop-iolist.h"
21 void io_loop_handler_init(struct ioloop *ioloop, unsigned int initial_fd_count)
25 ioloop->handler_context = ctx = i_new(struct ioloop_handler_context, 1);
42 void io_loop_handler_deinit(struct ioloop *ioloop)
44 struct ioloop_handler_context *ctx = ioloop->handler_context;
54 array_free(&ioloop->handler_context->fd_index);
55 array_free(&ioloop->handler_context->events);
56 i_free(ioloop->handler_context);
87 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
128 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
163 void io_loop_handler_run_internal(struct ioloop *ioloop)
165 struct ioloop_handler_context *ctx = ioloop->handler_context;
178 msecs = io_loop_get_wait_time(ioloop, &tv);
181 if (ioloop->io_files != NULL && events_count > ctx->deleted_count) {
195 io_loop_handle_timeouts(ioloop);
197 if (!ioloop->running)