//  Copyright (c) 2007-2022 Hartmut Kaiser
//  Copyright (c)      2018 Thomas Heller
//  Copyright (c)      2011 Bryce Lelbach
//  Copyright (c) 2008-2009 Chirag Dekate, Anshul Tandon
//
//  SPDX-License-Identifier: BSL-1.0
//  Distributed under the Boost Software License, Version 1.0. (See accompanying
//  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include <hpx/config.hpp>
#include <hpx/functional/function.hpp>

namespace hpx::threads {

    class HPX_CORE_EXPORT thread_pool_base;

    namespace detail {
        using get_default_pool_type = hpx::function<thread_pool_base*()>;
        HPX_CORE_EXPORT void set_get_default_pool(get_default_pool_type f);
        HPX_CORE_EXPORT thread_pool_base* get_self_or_default_pool();
    }    // namespace detail
}    // namespace hpx::threads
