summaryrefslogtreecommitdiff
path: root/boost/fiber/numa/pin_thread.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fiber/numa/pin_thread.hpp')
-rw-r--r--boost/fiber/numa/pin_thread.hpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/boost/fiber/numa/pin_thread.hpp b/boost/fiber/numa/pin_thread.hpp
new file mode 100644
index 0000000000..c8d48395c6
--- /dev/null
+++ b/boost/fiber/numa/pin_thread.hpp
@@ -0,0 +1,33 @@
+
+// Copyright Oliver Kowalke 2017.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_FIBERS_NUMA_PIN_THREAD_H
+#define BOOST_FIBERS_NUMA_PIN_THREAD_H
+
+#include <cstdint>
+
+#include <boost/config.hpp>
+
+#include <boost/fiber/detail/config.hpp>
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_PREFIX
+#endif
+
+namespace boost {
+namespace fibers {
+namespace numa {
+
+BOOST_FIBERS_DECL
+void pin_thread( std::uint32_t);
+
+}}}
+
+#ifdef BOOST_HAS_ABI_HEADERS
+# include BOOST_ABI_SUFFIX
+#endif
+
+#endif // BOOST_FIBERS_NUMA_PIN_THREAD_H