2 // Copyright Oliver Kowalke 2017.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_FIBERS_NUMA_TOPOLOGY_H
8 #define BOOST_FIBERS_NUMA_TOPOLOGY_H
14 #include <boost/config.hpp>
16 #include <boost/fiber/detail/config.hpp>
18 #ifdef BOOST_HAS_ABI_HEADERS
19 # include BOOST_ABI_PREFIX
28 std::set< std::uint32_t > logical_cpus;
29 std::vector< std::uint32_t > distance;
33 bool operator<( node const& lhs, node const& rhs) noexcept {
34 return lhs.id < rhs.id;
38 std::vector< node > topology();
42 #ifdef BOOST_HAS_ABI_HEADERS
43 # include BOOST_ABI_SUFFIX
46 #endif // BOOST_FIBERS_NUMA_TOPOLOGY_H