From 2df873a435ff139cf9d1b10b666d75e6dc6da442 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:05:01 +0900 Subject: Timers identified by dynamically generated handles Timers are not longer identified by hard-wired IDs. Signed-off-by: Martin Sustrik --- src/io_object.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/io_object.hpp') diff --git a/src/io_object.hpp b/src/io_object.hpp index 3236c22..0abd457 100644 --- a/src/io_object.hpp +++ b/src/io_object.hpp @@ -57,13 +57,13 @@ namespace xs void reset_pollin (handle_t handle_); void set_pollout (handle_t handle_); void reset_pollout (handle_t handle_); - void add_timer (int timout_, int id_); - void rm_timer (int id_); + handle_t add_timer (int timout_); + void rm_timer (handle_t handle_); // i_poll_events interface implementation. void in_event (fd_t fd_); void out_event (fd_t fd_); - void timer_event (int id_); + void timer_event (handle_t handle_); private: -- cgit v1.2.3