]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/poll.h
Use #ifdef _WIN32 rather than WIN32
[libs/core.git] / source / io / poll.h
index 78e6088f8bfe0f5289864550136cedab5154df84..952ea896068aff1c0da8bbcf2d14841a5364d3b2 100644 (file)
@@ -17,7 +17,8 @@ enum PollEvent
        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)
@@ -54,6 +55,7 @@ private:
 
 public:
        Poller();
+       ~Poller();
 
        void set_object(EventObject &, PollEvent);
        int poll();
@@ -61,6 +63,7 @@ public:
 private:
        void rebuild_array();
        int do_poll(int);
+       void platform_poll(int);
 public:
        const SlotList &get_result() const { return poll_result; }
 };