• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef BOOST_FIBERS_NUMA_PIN_THREAD_H
8 #define BOOST_FIBERS_NUMA_PIN_THREAD_H
9 
10 #include <cstdint>
11 #include <thread>
12 
13 #include <boost/config.hpp>
14 
15 #include <boost/fiber/detail/config.hpp>
16 
17 #ifdef BOOST_HAS_ABI_HEADERS
18 # include BOOST_ABI_PREFIX
19 #endif
20 
21 namespace boost {
22 namespace fibers {
23 namespace numa {
24 
25 BOOST_FIBERS_DECL
26 void pin_thread( std::uint32_t, std::thread::native_handle_type);
27 
28 BOOST_FIBERS_DECL
29 void pin_thread( std::uint32_t cpuid);
30 
31 }}}
32 
33 #ifdef BOOST_HAS_ABI_HEADERS
34 # include BOOST_ABI_SUFFIX
35 #endif
36 
37 #endif // BOOST_FIBERS_NUMA_PIN_THREAD_H
38