summaryrefslogtreecommitdiff
path: root/src/poller_base.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:09:54 +0900
committerMartin Sustrik <sustrik@250bpm.com>2012-02-16 10:09:54 +0900
commit0641ffa5e9588dd7daaf389c40a213994fe4b1b1 (patch)
treeba0152291d8a0aa01f6a531021fe4927c214b41f /src/poller_base.hpp
parent5391d09c9801ec7680f5dba430131c4f8d079765 (diff)
Intercept start() and stop() calls in poller_base_t
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/poller_base.hpp')
-rw-r--r--src/poller_base.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/poller_base.hpp b/src/poller_base.hpp
index 5edb5d4..e63f203 100644
--- a/src/poller_base.hpp
+++ b/src/poller_base.hpp
@@ -63,14 +63,17 @@ namespace xs
// invoked from a different thread!
int get_load ();
+ void start ();
+ void stop ();
+
virtual handle_t add_fd (fd_t fd_, xs::i_poll_events *events_) = 0;
virtual void rm_fd (handle_t handle_) = 0;
virtual void set_pollin (handle_t handle_) = 0;
virtual void reset_pollin (handle_t handle_) = 0;
virtual void set_pollout (handle_t handle_) = 0;
virtual void reset_pollout (handle_t handle_) = 0;
- virtual void start () = 0;
- virtual void stop () = 0;
+ virtual void xstart () = 0;
+ virtual void xstop () = 0;
// Add a timeout to expire in timeout_ milliseconds. After the
// expiration timer_event on sink_ object will be called.