summaryrefslogtreecommitdiff
path: root/src/socket_base.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:04:42 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:04:42 +0900
commit7e4fa8505f479c494b9e7bab361e4a11e1c579a5 (patch)
tree90016499b28b113b35b15eb6656b739c1389336b /src/socket_base.hpp
parentd3752a38faa25f2f213c638e4c236533eff72b70 (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/socket_base.hpp')
-rw-r--r--src/socket_base.hpp6
1 files changed, 3 insertions, 3 deletions
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.