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>
This commit is contained in:
Hirokazu Honda 2021-06-10 16:50:19 +09:00 committed by Laurent Pinchart
parent fcf98514cb
commit a59c471e5a
2 changed files with 7 additions and 7 deletions

View file

@ -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_;
};