Lines Matching defs:ioloop
6 #include "ioloop-private.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);
34 void io_loop_handler_deinit(struct ioloop *ioloop)
36 i_free(ioloop->handler_context->fds);
37 i_free(ioloop->handler_context->fd_index);
38 i_free(ioloop->handler_context);
47 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
99 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
144 void io_loop_handler_run_internal(struct ioloop *ioloop)
146 struct ioloop_handler_context *ctx = ioloop->handler_context;
154 msecs = io_loop_get_wait_time(ioloop, &tv);
169 io_loop_handle_timeouts(ioloop);
171 if (ret <= 0 || !ioloop->running) {
176 io = ioloop->io_files;
177 for (; io != NULL && ret > 0; io = ioloop->next_io_file) {
178 ioloop->next_io_file = io->next;