4 // Copyright 2005 Peter Dimov
6 // Distributed under the Boost Software License, Version 1.0. (See
7 // accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
11 #include <boost/detail/lightweight_mutex.hpp>
15 boost::detail::lightweight_mutex m1;
19 boost::detail::lightweight_mutex::scoped_lock lock1( m1 );
21 boost::detail::lightweight_mutex m2;
22 boost::detail::lightweight_mutex m3;
24 boost::detail::lightweight_mutex::scoped_lock lock2( m2 );
25 boost::detail::lightweight_mutex::scoped_lock lock3( m3 );