[llvm] [libsycl] extend sycl::event API with get_wait_list, wait_and_throw and default ctor (PR #205860)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 03:22:58 PDT 2026


================
@@ -166,14 +166,26 @@ class _LIBSYCL_EXPORT queue {
   /// exceptions.
   void wait();
 
+  /// Blocks the calling thread until all commands previously submitted to this
+  /// queue have completed. Synchronous errors are reported through SYCL
+  /// exceptions. At least all unconsumed asynchronous errors held by this queue
+  /// are passed to the appropriate async_handler.
----------------
KseniyaTikhomirova wrote:

not sure, if we call wait_and_throw on queue, there are 2 cases: async_handler associated with the queue and default async_handler. default async handler can be treated as "associated with the queue" but I am hesitant to be that specific.

https://github.com/llvm/llvm-project/pull/205860


More information about the llvm-commits mailing list