From: Jan Vesely Date: Tue, 17 Jul 2018 06:05:02 +0000 (-0400) Subject: clover: Catch errors from executing event action X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=866b25fd014cc50ff2bd1a56d696f4c068e46965;p=mesa.git clover: Catch errors from executing event action Abort all dependent events. v2: Abort the current event as well. CC: Signed-off-by: Jan Vesely Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/core/event.cpp b/src/gallium/state_trackers/clover/core/event.cpp index cd5d786604d..b7eb33dbfc8 100644 --- a/src/gallium/state_trackers/clover/core/event.cpp +++ b/src/gallium/state_trackers/clover/core/event.cpp @@ -49,12 +49,14 @@ event::trigger_self() { } void -event::trigger() { +event::trigger() try { if (wait_count() == 1) action_ok(*this); for (event &ev : trigger_self()) ev.trigger(); +} catch (error &e) { + abort(e.get()); } std::vector>