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:
committed by
Laurent Pinchart
parent
fcf98514cb
commit
a59c471e5a
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user