diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:05:01 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:05:01 +0900 |
commit | 2df873a435ff139cf9d1b10b666d75e6dc6da442 (patch) | |
tree | 042b0a349ca84919041fb37df7e5a3b7195d065d /src/io_object.hpp | |
parent | b67f88a7d6322a293ac3e3be9d6df9f358509221 (diff) |
Timers identified by dynamically generated handles
Timers are not longer identified by hard-wired IDs.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/io_object.hpp')
-rw-r--r-- | src/io_object.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
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: |