diff src/lib/ioloop-internal.h @ 8634:86c28d14ddeb HEAD

Added io_loop_set_max_fd_count() to specify how many fds we expect to use. It's used currently only for figuring out how much space should be allocated initially to fds.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Jan 2009 16:20:09 -0500
parents 2c111b572eee
children
line wrap: on
line diff
--- a/src/lib/ioloop-internal.h	Thu Jan 15 15:54:39 2009 -0500
+++ b/src/lib/ioloop-internal.h	Thu Jan 15 16:20:09 2009 -0500
@@ -17,6 +17,7 @@
 
         struct ioloop_handler_context *handler_context;
         struct ioloop_notify_handler_context *notify_handler_context;
+	unsigned int max_fd_count;
 
 	unsigned int running:1;
 };
@@ -60,7 +61,7 @@
 void io_loop_handle_add(struct io_file *io);
 void io_loop_handle_remove(struct io_file *io, bool closed);
 
-void io_loop_handler_init(struct ioloop *ioloop);
+void io_loop_handler_init(struct ioloop *ioloop, unsigned int initial_fd_count);
 void io_loop_handler_deinit(struct ioloop *ioloop);
 
 void io_loop_notify_remove(struct io *io);