DPC++ Runtime
Runtime libraries for oneAPI DPC++
async_handler.hpp
Go to the documentation of this file.
1 //===- async_handler.hpp --------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #pragma once
10 
11 #include <functional> // for function
12 
13 namespace sycl {
14 inline namespace _V1 {
15 
16 // Forward declaration
17 class exception_list;
18 
19 using async_handler = std::function<void(sycl::exception_list)>;
20 } // namespace _V1
21 } // namespace sycl
A list of asynchronous exceptions.
std::function< void(sycl::exception_list)> async_handler
Definition: access.hpp:18