//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include #include #include #include #include _LIBSYCL_BEGIN_NAMESPACE_SYCL queue::queue(const device &syclDevice, const async_handler &asyncHandler, const property_list &propList) { impl = detail::QueueImpl::create(*detail::getSyclObjImpl(syclDevice), asyncHandler, propList); } backend queue::get_backend() const noexcept { return impl->getBackend(); } context queue::get_context() const { return detail::createSyclObjFromImpl(impl->getContext()); } device queue::get_device() const { return detail::createSyclObjFromImpl(impl->getDevice()); } bool queue::is_in_order() const { return impl->isInOrder(); } void queue::wait() { impl->wait(); } _LIBSYCL_END_NAMESPACE_SYCL