#ifndef MSP_IO_EVENTREADER_H_
#define MSP_IO_EVENTREADER_H_
+#include <msp/core/noncopyable.h>
#include "handle.h"
namespace Msp {
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;
EventReader(Handle &, unsigned);
~EventReader();
- const Handle &get_event() const;
+ const Handle &get_event();
void start();
void wait();