Add BOOST_HEADER_DEPRECATED to boost/smart_ptr/detail/sp_thread_*.hpp

This commit is contained in:
Peter Dimov
2023-06-03 02:14:43 +03:00
parent c7349834be
commit aacfb25c82
4 changed files with 12 additions and 5 deletions

View File

@ -6,6 +6,9 @@
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/yield_primitives.hpp>
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED( "<boost/core/yield_primitives.hpp>" )
namespace boost
{

View File

@ -6,6 +6,9 @@
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/yield_primitives.hpp>
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED( "<boost/core/yield_primitives.hpp>" )
namespace boost
{

View File

@ -6,6 +6,9 @@
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/yield_primitives.hpp>
#include <boost/config/header_deprecated.hpp>
BOOST_HEADER_DEPRECATED( "<boost/core/yield_primitives.hpp>" )
namespace boost
{

View File

@ -19,9 +19,7 @@
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/smart_ptr/detail/sp_thread_pause.hpp>
#include <boost/smart_ptr/detail/sp_thread_sleep.hpp>
#include <boost/config.hpp>
#include <boost/core/yield_primitives.hpp>
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();
}
}