]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fiber/src/numa/pin_thread.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / fiber / src / numa / pin_thread.cpp
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
29 void 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 }}}
36
37 #ifdef BOOST_HAS_ABI_HEADERS
38 # include BOOST_ABI_SUFFIX
39 #endif