summaryrefslogtreecommitdiff
path: root/src/poll_looper.hh
blob: 8f6038ef29fda5c7c2c50c597a0f6eb12a0a2895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef POLL_LOOPER_HH
#define POLL_LOOPER_HH

#include <memory>

#include "looper.hh"

class PollLooper : public Looper {
public:
  static std::unique_ptr<PollLooper> create();

  virtual void run() = 0;

  virtual void exit_when_empty() = 0;
};

#endif  // POLL_LOOPER_HH