Initialize boost git in 2.0_beta.
[external/boost.git] / libs / smart_ptr / test / lw_mutex_test.cpp
1 //
2 // lw_mutex_test.cpp
3 //
4 // Copyright 2005 Peter Dimov
5 //
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)
9 //
10
11 #include <boost/detail/lightweight_mutex.hpp>
12
13 // Sanity check only
14
15 boost::detail::lightweight_mutex m1;
16
17 int main()
18 {
19     boost::detail::lightweight_mutex::scoped_lock lock1( m1 );
20
21     boost::detail::lightweight_mutex m2;
22     boost::detail::lightweight_mutex m3;
23
24     boost::detail::lightweight_mutex::scoped_lock lock2( m2 );
25     boost::detail::lightweight_mutex::scoped_lock lock3( m3 );
26
27     return 0;
28 }