]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/pipe.h
Implement get_handle in File and Pipe
[libs/core.git] / source / io / pipe.h
index 73731776856a2fc1c9d90530935fc4009ffaf2cc..d1508b2097d743b244c03f89d4230cf59cad8608 100644 (file)
@@ -11,7 +11,8 @@ namespace IO {
 class Pipe: public EventObject
 {
 private:
-       Handle handle[2];
+       Handle read_handle;
+       Handle write_handle;
        EventReader reader;
 
 public:
@@ -25,6 +26,7 @@ protected:
        virtual unsigned do_read(char *, unsigned);
 
 public:
+       virtual const Handle &get_handle(Mode);
        virtual const Handle &get_event_handle() { return reader.get_event(); }
 };