X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Feventreader.h;h=3c01f09ed8605cca3b518762700d4c85421bbfe0;hp=b3acdb9185d66a53d81181ca2f6fa28bb7874d9f;hb=be8ea216d23bf36bdfb2d3e302638782575fc136;hpb=caa2f6ca5d0a803e47d6efb4858c92c505520527 diff --git a/source/io/eventreader.h b/source/io/eventreader.h index b3acdb9..3c01f09 100644 --- a/source/io/eventreader.h +++ b/source/io/eventreader.h @@ -1,6 +1,7 @@ #ifndef MSP_IO_EVENTREADER_H_ #define MSP_IO_EVENTREADER_H_ +#include #include "handle.h" namespace Msp { @@ -18,7 +19,7 @@ empty, a new overlapped read is started. Unix-based systems can poll the fd directly, so this class reduces to a simple passthrough to sys_read. */ -class EventReader +class EventReader: private NonCopyable { private: struct Private; @@ -30,7 +31,7 @@ public: EventReader(Handle &, unsigned); ~EventReader(); - const Handle &get_event() const; + const Handle &get_event(); void start(); void wait();