Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:44:27

0001 //
0002 // Copyright (c) 2022 Klemens Morgenstern (klemens.morgenstern@gmx.net)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_COBALT_THIS_THREAD_HPP
0009 #define BOOST_COBALT_THIS_THREAD_HPP
0010 
0011 #include <boost/cobalt/config.hpp>
0012 #include <boost/config.hpp>
0013 
0014 
0015 #include <boost/asio/io_context.hpp>
0016 
0017 namespace boost::cobalt::this_thread
0018 {
0019 
0020 #if !defined(BOOST_COBALT_NO_PMR)
0021 BOOST_COBALT_DECL pmr::memory_resource* get_default_resource() noexcept;
0022 BOOST_COBALT_DECL pmr::memory_resource* set_default_resource(pmr::memory_resource* r) noexcept;
0023 BOOST_COBALT_DECL pmr::polymorphic_allocator<void> get_allocator();
0024 #endif
0025 
0026 BOOST_COBALT_DECL
0027 executor & get_executor(
0028     const boost::source_location & loc = BOOST_CURRENT_LOCATION);
0029 BOOST_COBALT_DECL bool has_executor();
0030 BOOST_COBALT_DECL void set_executor(executor exec) noexcept;
0031 
0032 }
0033 
0034 #endif //BOOST_COBALT_THIS_THREAD_HPP