Lines Matching defs:ioloop
4 #include "ioloop-private.h"
20 static void update_highest_fd(struct ioloop *ioloop)
22 struct ioloop_handler_context *ctx = ioloop->handler_context;
29 for (io = ioloop->io_files; io != NULL; io = io->next) {
40 void io_loop_handler_init(struct ioloop *ioloop,
45 ioloop->handler_context = ctx = i_new(struct ioloop_handler_context, 1);
52 void io_loop_handler_deinit(struct ioloop *ioloop)
54 i_free(ioloop->handler_context);
59 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
80 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
96 update_highest_fd(io->io.ioloop);
106 void io_loop_handler_run_internal(struct ioloop *ioloop)
108 struct ioloop_handler_context *ctx = ioloop->handler_context;
114 io_loop_get_wait_time(ioloop, &tv);
126 io_loop_handle_timeouts(ioloop);
128 if (ret <= 0 || !ioloop->running) {
133 io = ioloop->io_files;
134 for (; io != NULL && ret > 0; io = ioloop->next_io_file) {
135 ioloop->next_io_file = io->next;