4 // Copyright 2008 Peter Dimov
6 // Distributed under the Boost Software License, Version 1.0.
7 // See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
11 #include <boost/smart_ptr/detail/spinlock.hpp>
15 static boost::detail::spinlock sp
= BOOST_DETAIL_SPINLOCK_INIT
;
16 static boost::detail::spinlock sp2
= BOOST_DETAIL_SPINLOCK_INIT
;
26 boost::detail::spinlock::scoped_lock
lock( sp
);
27 boost::detail::spinlock::scoped_lock
lock2( sp2
);