aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/WakeFD.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/event/WakeFD.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/event/WakeFD.hxx b/src/event/WakeFD.hxx
index 7b2d52675..15b66b4cf 100644
--- a/src/event/WakeFD.hxx
+++ b/src/event/WakeFD.hxx
@@ -48,7 +48,9 @@ public:
int Get() const {
assert(fds[0] >= 0);
+#ifndef HAVE_EVENTFD
assert(fds[1] >= 0);
+#endif
return fds[0];
}
@@ -64,6 +66,15 @@ public:
* be combined to one wakeup.
*/
void Write();
+
+private:
+#ifdef HAVE_EVENTFD
+ bool IsEventFD() {
+ assert(fds[0] >= 0);
+
+ return fds[1] == -2;
+ }
+#endif
};
#endif /* MAIN_NOTIFY_H */