aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/thread.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/include/uhd/utils/thread.hpp b/host/include/uhd/utils/thread.hpp
index 05cba0d14..aeb27e467 100644
--- a/host/include/uhd/utils/thread.hpp
+++ b/host/include/uhd/utils/thread.hpp
@@ -56,6 +56,12 @@ UHD_API void set_thread_name(boost::thread* thread, const std::string& name);
*/
UHD_API void set_thread_name(std::thread* thread, const std::string& name);
+/*!
+ * Set the affinity of the current thread to a (set of) CPU(s).
+ * \param cpu_affinity_list list of CPU numbers to affinitize the thread to
+ */
+UHD_API void set_thread_affinity(const std::vector<size_t>& cpu_affinity_list);
+
} // namespace uhd
#endif /* INCLUDED_UHD_UTILS_THREAD_HPP */