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/socket_base.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/socket_base.hpp') diff --git a/src/socket_base.hpp b/src/socket_base.hpp index 614d3d0..250215b 100644 --- a/src/socket_base.hpp +++ b/src/socket_base.hpp @@ -28,7 +28,7 @@ #include "own.hpp" #include "array.hpp" #include "stdint.hpp" -#include "poller.hpp" +#include "poller_base.hpp" #include "atomic_counter.hpp" #include "i_poll_events.hpp" #include "mailbox.hpp" @@ -82,7 +82,7 @@ namespace xs // Using this function reaper thread ask the socket to regiter with // its poller. - void start_reaping (poller_t *poller_); + void start_reaping (poller_base_t *poller_); // i_poll_events implementation. This interface is used when socket // is handled by the poller in the reaper thread. @@ -180,7 +180,7 @@ namespace xs pipes_t pipes; // Reaper's poller and handle of this socket within it. - poller_t *poller; + poller_base_t *poller; handle_t handle; // Timestamp of when commands were processed the last time. -- cgit v1.2.3