From 7e4fa8505f479c494b9e7bab361e4a11e1c579a5 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:04:42 +0900 Subject: poller_base_t is used instead of poller_t Poller object is virtualised. You can access poller via its base class (poller_base_t) instead of using poller_t which was a typedef pointing to actual derived class. Signed-off-by: Martin Sustrik --- src/io_thread.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/io_thread.hpp') diff --git a/src/io_thread.hpp b/src/io_thread.hpp index 0acb60d..744eec5 100644 --- a/src/io_thread.hpp +++ b/src/io_thread.hpp @@ -26,7 +26,7 @@ #include "stdint.hpp" #include "object.hpp" -#include "poller.hpp" +#include "poller_base.hpp" #include "i_poll_events.hpp" #include "mailbox.hpp" @@ -63,7 +63,7 @@ namespace xs void timer_event (int id_); // Used by io_objects to retrieve the assciated poller object. - poller_t *get_poller (); + poller_base_t *get_poller (); // Command handlers. void process_stop (); @@ -80,7 +80,7 @@ namespace xs handle_t mailbox_handle; // I/O multiplexing is performed using a poller object. - poller_t *poller; + poller_base_t *poller; io_thread_t (const io_thread_t&); const io_thread_t &operator = (const io_thread_t&); -- cgit v1.2.3