From aacfb25c8249ed9b50218344828b7539f5e455b9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 3 Jun 2023 02:14:43 +0300 Subject: [PATCH] Add BOOST_HEADER_DEPRECATED to boost/smart_ptr/detail/sp_thread_*.hpp --- include/boost/smart_ptr/detail/sp_thread_pause.hpp | 3 +++ include/boost/smart_ptr/detail/sp_thread_sleep.hpp | 3 +++ include/boost/smart_ptr/detail/sp_thread_yield.hpp | 3 +++ include/boost/smart_ptr/detail/yield_k.hpp | 8 +++----- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/include/boost/smart_ptr/detail/sp_thread_pause.hpp b/include/boost/smart_ptr/detail/sp_thread_pause.hpp index 2bb7d39..a470141 100644 --- a/include/boost/smart_ptr/detail/sp_thread_pause.hpp +++ b/include/boost/smart_ptr/detail/sp_thread_pause.hpp @@ -6,6 +6,9 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include + +BOOST_HEADER_DEPRECATED( "" ) namespace boost { diff --git a/include/boost/smart_ptr/detail/sp_thread_sleep.hpp b/include/boost/smart_ptr/detail/sp_thread_sleep.hpp index 95cee95..8242f51 100644 --- a/include/boost/smart_ptr/detail/sp_thread_sleep.hpp +++ b/include/boost/smart_ptr/detail/sp_thread_sleep.hpp @@ -6,6 +6,9 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include + +BOOST_HEADER_DEPRECATED( "" ) namespace boost { diff --git a/include/boost/smart_ptr/detail/sp_thread_yield.hpp b/include/boost/smart_ptr/detail/sp_thread_yield.hpp index 4b79521..741d762 100644 --- a/include/boost/smart_ptr/detail/sp_thread_yield.hpp +++ b/include/boost/smart_ptr/detail/sp_thread_yield.hpp @@ -6,6 +6,9 @@ // https://www.boost.org/LICENSE_1_0.txt #include +#include + +BOOST_HEADER_DEPRECATED( "" ) namespace boost { diff --git a/include/boost/smart_ptr/detail/yield_k.hpp b/include/boost/smart_ptr/detail/yield_k.hpp index d9a1b46..f226d86 100644 --- a/include/boost/smart_ptr/detail/yield_k.hpp +++ b/include/boost/smart_ptr/detail/yield_k.hpp @@ -19,9 +19,7 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt -#include -#include -#include +#include namespace boost { @@ -36,11 +34,11 @@ inline void yield( unsigned k ) if( k == 0 ) { - sp_thread_pause(); + boost::core::sp_thread_pause(); } else { - sp_thread_sleep(); + boost::core::sp_thread_sleep(); } }