X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fpipe.h;fp=source%2Fio%2Fpipe.h;h=813c4d8e6c634047c07b70830b8a196e5252df43;hp=eb77e6ab830d0d50cfa5bbedc16a29b7bbfbe4d2;hb=a27ea413e861a30c61b29d77d58ea3d15a9de6a1;hpb=caa2f6ca5d0a803e47d6efb4858c92c505520527 diff --git a/source/io/pipe.h b/source/io/pipe.h index eb77e6a..813c4d8 100644 --- a/source/io/pipe.h +++ b/source/io/pipe.h @@ -2,6 +2,7 @@ #define MSP_IO_PIPE_H_ #include "eventobject.h" +#include "eventreader.h" #include "handle.h" namespace Msp { @@ -10,10 +11,8 @@ namespace IO { class Pipe: public EventObject { private: - struct Private; - Handle handle[2]; - Private *priv; + EventReader reader; public: Pipe(); @@ -28,7 +27,7 @@ protected: virtual unsigned do_read(char *, unsigned); public: - virtual const Handle &get_event_handle(); + virtual const Handle &get_event_handle() { return reader.get_event(); } }; } // namespace IO