mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
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:
parent
fcf98514cb
commit
a59c471e5a
2 changed files with 7 additions and 7 deletions
|
@ -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_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue