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/pin_thread.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 "pin_thread() not supported" 26 #endif 27 28 BOOST_FIBERS_DECL pin_thread(std::uint32_t)29void pin_thread( std::uint32_t) { 30 throw fiber_error{ 31 std::make_error_code( std::errc::function_not_supported), 32 "boost fiber: pin_thread() not supported" }; 33 } 34 35 BOOST_FIBERS_DECL pin_thread(std::uint32_t cpuid,std::thread::native_handle_type h)36void pin_thread( std::uint32_t cpuid, std::thread::native_handle_type h) { 37 throw fiber_error{ 38 std::make_error_code( std::errc::function_not_supported), 39 "boost fiber: pin_thread() not supported" }; 40 } 41 42 }}} 43 44 #ifdef BOOST_HAS_ABI_HEADERS 45 # include BOOST_ABI_SUFFIX 46 #endif 47