summaryrefslogtreecommitdiff
path: root/events.c
AgeCommit message (Collapse)Author
2012-11-15events: Safeguard against event deletion in event callbacksLaurent Pinchart
Events callback can call events_unwatch_fd(), resulting in the event being deleted from the events list. Use list_for_each_entry_safe() to walk the list properly, and make sure the event isn't accessed after it's callback function returns. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-17events: Stop dispatching events immediately when requested to stopLaurent Pinchart
Otherwise events received but not yet dispatched are dispatched and can call hangs in ioctls as the pipeline has likely been stopped. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16events: Make the event loop reusableLaurent Pinchart
Set the done flag to false before starting the loop in order to make it possible for the caller to restart the loop. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Add support for exception eventsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2012-04-16Factor event handling code out into events.cLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>