summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-06-10 16:50:19 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-04 23:04:20 +0200
commita59c471e5aa6eb8a8fd99987073aa70acc79f274 (patch)
tree81ada0d6d40d736498fccaa090dd90936773a4d5 /include
parentfcf98514cb4eb603a05329deec508fe790ba1c17 (diff)
libcamera: event_dispatcher_poll: Manage fd by UniqueFD
Manages the event file descriptor owned by EventDispatcherPoll by UniqueFD. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/base/event_dispatcher_poll.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/base/event_dispatcher_poll.h b/include/libcamera/base/event_dispatcher_poll.h
index 3d2fc7bb..b7840309 100644
--- a/include/libcamera/base/event_dispatcher_poll.h
+++ b/include/libcamera/base/event_dispatcher_poll.h
@@ -14,6 +14,7 @@
#include <libcamera/base/private.h>
#include <libcamera/base/event_dispatcher.h>
+#include <libcamera/base/unique_fd.h>
struct pollfd;
@@ -50,7 +51,7 @@ private:
std::map<int, EventNotifierSetPoll> notifiers_;
std::list<Timer *> timers_;
- int eventfd_;
+ UniqueFD eventfd_;
bool processingEvents_;
};