diff src/lib/ioloop.h @ 7098:becdf2eacdce HEAD

Use priority queue to implement timeout handling. Added timeout_reset().
author Timo Sirainen <tss@iki.fi>
date Thu, 03 Jan 2008 23:19:33 +0200
parents e4eb71ae8e96
children 940641318f12
line wrap: on
line diff
--- a/src/lib/ioloop.h	Thu Jan 03 23:18:46 2008 +0200
+++ b/src/lib/ioloop.h	Thu Jan 03 23:19:33 2008 +0200
@@ -68,6 +68,8 @@
 			 callback, context, msecs)
 /* Remove timeout handler, and set timeout pointer to NULL. */
 void timeout_remove(struct timeout **timeout);
+/* Reset timeout so it's next run after now+msecs. */
+void timeout_reset(struct timeout *timeout);
 
 void io_loop_run(struct ioloop *ioloop);
 void io_loop_stop(struct ioloop *ioloop); /* safe to run in signal handler */