Lines Matching defs:ioloop
2 * BSD kqueue() based ioloop handler.
12 #include "ioloop-private.h"
37 void io_loop_handler_init(struct ioloop *ioloop, unsigned int initial_fd_count)
41 ioloop->handler_context = ctx = i_new(struct ioloop_handler_context, 1);
50 void io_loop_handler_deinit(struct ioloop *ioloop)
52 if (close(ioloop->handler_context->kq) < 0)
54 array_free(&ioloop->handler_context->events);
55 i_free(ioloop->handler_context);
60 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
84 struct ioloop_handler_context *ctx = io->io.ioloop->handler_context;
110 void io_loop_handler_run_internal(struct ioloop *ioloop)
112 struct ioloop_handler_context *ctx = ioloop->handler_context;
122 msecs = io_loop_get_wait_time(ioloop, &tv);
151 io_loop_handle_timeouts(ioloop);