From 1fc8e2f25a6ba01af37e2c7fbc9c977d963d467a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 2 Dec 2023 14:43:21 +0200 Subject: [PATCH] Switch to --- rw_spinlock.hpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rw_spinlock.hpp b/rw_spinlock.hpp index 38a99b6..740c93b 100644 --- a/rw_spinlock.hpp +++ b/rw_spinlock.hpp @@ -5,8 +5,7 @@ // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt -#include -#include +#include #include #include @@ -59,10 +58,10 @@ class rw_spinlock if( state_.compare_exchange_weak( st, newst, std::memory_order_acquire, std::memory_order_relaxed ) ) return; } - boost::detail::sp_thread_pause(); + boost::core::sp_thread_pause(); } - boost::detail::sp_thread_sleep(); + boost::core::sp_thread_sleep(); } } @@ -127,7 +126,7 @@ class rw_spinlock state_.compare_exchange_weak( st, newst, std::memory_order_relaxed, std::memory_order_relaxed ); } - boost::detail::sp_thread_pause(); + boost::core::sp_thread_pause(); } // clear writer pending bit before going to sleep @@ -164,7 +163,7 @@ class rw_spinlock } } - boost::detail::sp_thread_sleep(); + boost::core::sp_thread_sleep(); } }