From 0e167c86051614f9d9d9fab255aae8272b1b056b Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 16 Feb 2012 10:03:45 +0900 Subject: File descriptor passed to in_event and out_event Signed-off-by: Martin Sustrik --- src/i_poll_events.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/i_poll_events.hpp') diff --git a/src/i_poll_events.hpp b/src/i_poll_events.hpp index ca1625d..0b9bd86 100644 --- a/src/i_poll_events.hpp +++ b/src/i_poll_events.hpp @@ -21,7 +21,9 @@ #ifndef __XS_I_POLL_EVENTS_HPP_INCLUDED__ #define __XS_I_POLL_EVENTS_HPP_INCLUDED__ - + +#include "fd.hpp" + namespace xs { @@ -33,10 +35,10 @@ namespace xs virtual ~i_poll_events () {} // Called by I/O thread when file descriptor is ready for reading. - virtual void in_event () = 0; + virtual void in_event (fd_t fd_) = 0; // Called by I/O thread when file descriptor is ready for writing. - virtual void out_event () = 0; + virtual void out_event (fd_t fd_) = 0; // Called when timer expires. virtual void timer_event (int id_) = 0; -- cgit v1.2.3