From f8d92b09381ce5d18a64f1908465fe99e94d5a1f Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Wed, 11 Sep 2024 17:52:46 -0500 Subject: [PATCH] Resolve circular dependency between concurrency and allocator_support modules --- .../thread_local_caching_allocator.hpp | 16 ++++--- libs/core/async_base/CMakeLists.txt | 4 +- .../include/hpx/async_base/dataflow.hpp | 9 ++-- libs/core/async_combinators/CMakeLists.txt | 3 +- .../hpx/async_combinators/when_all.hpp | 10 ++-- .../include/hpx/concurrency/stack.hpp | 8 +++- libs/core/concurrency/tests/unit/stack.cpp | 8 ++-- libs/core/execution/CMakeLists.txt | 3 +- .../hpx/execution/detail/future_exec.hpp | 9 ++-- libs/core/executors/CMakeLists.txt | 3 +- .../hpx/executors/parallel_executor.hpp | 9 ++-- libs/core/futures/CMakeLists.txt | 3 +- .../futures/include/hpx/futures/future.hpp | 37 ++++++++------ .../include/hpx/futures/futures_factory.hpp | 7 ++- .../hpx/futures/packaged_continuation.hpp | 12 +++-- libs/core/lcos_local/CMakeLists.txt | 3 +- .../include/hpx/lcos_local/and_gate.hpp | 7 ++- libs/full/async_distributed/CMakeLists.txt | 2 +- .../detail/async_implementations.hpp | 48 ++++++++++--------- 19 files changed, 122 insertions(+), 79 deletions(-) diff --git a/libs/core/allocator_support/include/hpx/allocator_support/thread_local_caching_allocator.hpp b/libs/core/allocator_support/include/hpx/allocator_support/thread_local_caching_allocator.hpp index 1dec447e3041..0afd89a7c3fe 100644 --- a/libs/core/allocator_support/include/hpx/allocator_support/thread_local_caching_allocator.hpp +++ b/libs/core/allocator_support/include/hpx/allocator_support/thread_local_caching_allocator.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2023 Hartmut Kaiser +// Copyright (c) 2023-2024 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -8,7 +8,6 @@ #include #include -#include #include #include @@ -21,8 +20,10 @@ namespace hpx::util { #if defined(HPX_ALLOCATOR_SUPPORT_HAVE_CACHING) && \ !((defined(HPX_HAVE_CUDA) && defined(__CUDACC__)) || \ defined(HPX_HAVE_HIP)) + /////////////////////////////////////////////////////////////////////////// - template > + template