summaryrefslogtreecommitdiff
path: root/src/libcamera/include/event_dispatcher_poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/event_dispatcher_poll.h')
-rw-r--r--src/libcamera/include/event_dispatcher_poll.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcamera/include/event_dispatcher_poll.h b/src/libcamera/include/event_dispatcher_poll.h
index ac3efde0..1c0066c2 100644
--- a/src/libcamera/include/event_dispatcher_poll.h
+++ b/src/libcamera/include/event_dispatcher_poll.h
@@ -31,6 +31,7 @@ public:
void unregisterTimer(Timer *timer);
void processEvents();
+ void interrupt();
private:
struct EventNotifierSetPoll {
@@ -40,8 +41,10 @@ private:
std::map<int, EventNotifierSetPoll> notifiers_;
std::list<Timer *> timers_;
+ int eventfd_;
int poll(std::vector<struct pollfd> *pollfds);
+ void processInterrupt(const struct pollfd &pfd);
void processNotifiers(const std::vector<struct pollfd> &pollfds);
void processTimers();
};