summaryrefslogtreecommitdiff
path: root/src/poll_looper.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-09-26 20:09:31 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-09-26 20:09:31 +0200
commitc85b624d28564a6f785b25000e2b7825592a919d (patch)
tree647b756c824b470b35f1371eb869e9534ed6c1bb /src/poll_looper.hh
Initial commit
Diffstat (limited to 'src/poll_looper.hh')
-rw-r--r--src/poll_looper.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/poll_looper.hh b/src/poll_looper.hh
new file mode 100644
index 0000000..16097fe
--- /dev/null
+++ b/src/poll_looper.hh
@@ -0,0 +1,15 @@
+#ifndef POLL_LOOPER_HH
+#define POLL_LOOPER_HH
+
+#include "looper.hh"
+
+class PollLooper : public Looper {
+public:
+ static PollLooper* create();
+
+ virtual void run() = 0;
+
+ virtual void exit_when_empty() = 0;
+};
+
+#endif // POLL_LOOPER_HH