diff src/lib/ioloop.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.h	Thu Jan 15 15:54:39 2009 -0500
+++ b/src/lib/ioloop.h	Thu Jan 15 16:20:09 2009 -0500
@@ -88,6 +88,8 @@
 void io_loop_handler_run(struct ioloop *ioloop);
 
 struct ioloop *io_loop_create(void);
+/* Specify the maximum number of fds we're expecting to use. */
+void io_loop_set_max_fd_count(struct ioloop *ioloop, unsigned int max_fds);
 /* Destroy I/O loop and set ioloop pointer to NULL. */
 void io_loop_destroy(struct ioloop **ioloop);