1 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) 6 7 #include "boost/fiber/numa/topology.hpp" 8 9 #include <system_error> 10 11 #include "boost/fiber/exceptions.hpp" 12 13 #ifdef BOOST_HAS_ABI_HEADERS 14 # include BOOST_ABI_PREFIX 15 #endif 16 17 namespace boost { 18 namespace fibers { 19 namespace numa { 20 21 #if BOOST_COMP_CLANG || \ 22 BOOST_COMP_GNUC || \ 23 BOOST_COMP_INTEL || \ 24 BOOST_COMP_MSVC 25 # pragma message "topology() not supported" 26 #endif 27 28 BOOST_FIBERS_DECL topology()29std::vector< node > topology() { 30 throw fiber_error{ 31 std::make_error_code( std::errc::function_not_supported), 32 "boost fiber: topology() not supported" }; 33 return std::vector< node >{}; 34 } 35 36 }}} 37 38 #ifdef BOOST_HAS_ABI_HEADERS 39 # include BOOST_ABI_SUFFIX 40 #endif 41