12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef BOOST_SMART_PTR_DETAIL_YIELD_K_HPP_INCLUDED
- #define BOOST_SMART_PTR_DETAIL_YIELD_K_HPP_INCLUDED
- #if defined(_MSC_VER) && (_MSC_VER >= 1020)
- # pragma once
- #endif
- #include <boost/core/yield_primitives.hpp>
- namespace boost
- {
- namespace detail
- {
- inline void yield( unsigned k )
- {
-
-
- if( k & 1 )
- {
- boost::core::sp_thread_sleep();
- }
- else
- {
- boost::core::sp_thread_pause();
- }
- }
- }
- }
- #endif
|