]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/poll.h
Make sure all classes have sensible copy semantics
[libs/core.git] / source / io / poll.h
index 09e00e5bbedb6313bea0832d09eb0e451a5ffe3d..b65166d24bffb7cf8d7aea7e30f09f525c7b84d2 100644 (file)
@@ -4,6 +4,7 @@
 #include <list>
 #include <map>
 #include <vector>
 #include <list>
 #include <map>
 #include <vector>
+#include <msp/core/noncopyable.h>
 #include <msp/time/timedelta.h>
 
 namespace Msp {
 #include <msp/time/timedelta.h>
 
 namespace Msp {
@@ -17,7 +18,8 @@ enum PollEvent
        P_INPUT = 1,
        P_PRIO = 2,
        P_OUTPUT = 4,
        P_INPUT = 1,
        P_PRIO = 2,
        P_OUTPUT = 4,
-       P_ERROR = 8
+       P_ERROR = 8,
+       P_HANGUP = 16
 };
 
 inline PollEvent operator|(PollEvent e, PollEvent f)
 };
 
 inline PollEvent operator|(PollEvent e, PollEvent f)
@@ -30,7 +32,7 @@ inline PollEvent operator~(PollEvent e)
 { return PollEvent(~static_cast<int>(e)); }
 
 
 { return PollEvent(~static_cast<int>(e)); }
 
 
-class Poller
+class Poller: private NonCopyable
 {
 public:
        struct Slot
 {
 public:
        struct Slot