diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-10-02 10:46:36 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-10-02 10:46:36 +0200 |
commit | 4efe2366d7394e8969fc9aa64c50be6842d8455f (patch) | |
tree | 477358114c383f6afb5c796fea0a66c6e1b93d1c /src/epoll.hpp | |
parent | 4a3b4dadead8fe2af65443d0be4cc8462b9aa597 (diff) |
poller is a concept now rather than virtualised class
Diffstat (limited to 'src/epoll.hpp')
-rw-r--r-- | src/epoll.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/epoll.hpp b/src/epoll.hpp index 619d4f3..90824bd 100644 --- a/src/epoll.hpp +++ b/src/epoll.hpp @@ -27,8 +27,6 @@ #include <vector> #include <sys/epoll.h> -#include "i_poller.hpp" -//#include "i_poll_events.hpp" #include "fd.hpp" #include "thread.hpp" #include "atomic_counter.hpp" @@ -39,22 +37,24 @@ namespace zmq // This class implements socket polling mechanism using the Linux-specific // epoll mechanism. - class epoll_t : public i_poller + class epoll_t { public: + typedef void* handle_t; + epoll_t (); ~epoll_t (); - // i_poller implementation. - handle_t add_fd (fd_t fd_, i_poll_events *events_); + // "poller" concept. + handle_t add_fd (fd_t fd_, struct i_poll_events *events_); void rm_fd (handle_t handle_); void set_pollin (handle_t handle_); void reset_pollin (handle_t handle_); void set_pollout (handle_t handle_); void reset_pollout (handle_t handle_); - void add_timer (i_poll_events *events_); - void cancel_timer (i_poll_events *events_); + void add_timer (struct i_poll_events *events_); + void cancel_timer (struct i_poll_events *events_); int get_load (); void start (); void stop (); |