X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fpipe.h;h=a2a7d0f99f53ec6fafb69752c2f60886d5365a93;hp=71edf7eb3246f125ceb09ccd90495381807c8b85;hb=31e72f50fbb34d86877e5110401c49ce3fefd4bb;hpb=6e0fd758970bcb5bad5e3f2454b694cc4d7b4b66 diff --git a/source/io/pipe.h b/source/io/pipe.h index 71edf7e..a2a7d0f 100644 --- a/source/io/pipe.h +++ b/source/io/pipe.h @@ -2,6 +2,7 @@ #define MSP_IO_PIPE_H_ #include "base.h" +#include "handle.h" namespace Msp { namespace IO { @@ -9,15 +10,10 @@ namespace IO { class Pipe: public Base { private: + struct Private; + Handle handle[2]; -#ifdef WIN32 - OVERLAPPED *overlapped; - Handle event; - unsigned buf_size; - char *buffer; - unsigned buf_avail; - char *buf_next; -#endif + Private *priv; public: Pipe(); @@ -32,7 +28,7 @@ protected: virtual unsigned do_read(char *, unsigned); public: - virtual Handle get_event_handle(); + virtual const Handle &get_event_handle(); }; } // namespace IO