summaryrefslogtreecommitdiff
path: root/test/timer.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-07-12 13:38:50 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-07-13 07:47:36 +0300
commit3e14a1bcb0557e73718d12cd7ef113940472a934 (patch)
tree48429ccb4581e6173b6ddb372cc2545523606bb1 /test/timer.cpp
parent8f1dbd6a92381e38ba4bf65bdc35d5475ae6dc0a (diff)
libcamera: event_notifier_poll: Fix notifier unregistration during event processing
An event notifier may be unregistered from its activated signal. This can cause the notifiers set entry in notifiers_ to be deleted while processNotifiers() is looping over the notifiers_ map, leading to problems. To fix this, add a flag to the EventNotifierPoll class to indicate that event processing is in progress. If the flag is set, the notifiers_ entry is not deleted during notifier unregistration, but will be deleted by the event processing loop. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/timer.cpp')
0 files changed, 0 insertions, 0 deletions