diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 27f800c4..36dd81d1 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -3835,13 +3835,16 @@ void wait_and_throw() a@ Blocks until all commands associated with this event and any dependent events have completed. -Any unconsumed <> which were produced by the -execution of commands associated with this event or any dependent events, are -passed to the <> associated with the respective context. +Any uncomsumed <> held by queues (or their +associated contexts) which were used to enqueue commands associated with this +event and any dependent events, are passed to the approriate <> +as described in <>. -If no user defined <> is associated with the context, then an -implementation-defined default <> is invoked to handle errors, -as described in <>. +[NOTE] +==== +This behaviour is equivalent to calling [code]#queue::throw_asynchronous()# on +the queue associated with this event and any dependent events. +==== a@ [source] @@ -16458,6 +16461,7 @@ defined in <>. The default <> must in some way report all errors passed to it, when possible, and must then invoke [code]#std::terminate# or equivalent. +[[subsubsec:async.handler.priorities]] ==== Priorities of async handlers If the SYCL runtime can associate an <> with a specific queue,