]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/mutual_exclusion/locks/strict_lock/types_pass.cpp
1 // Copyright (C) 2012 Vicente J. Botet Escriba
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // <boost/thread/mutex.hpp>
10 // template <class Mutex>
14 // typedef Mutex mutex_type;
19 #include <boost/thread/strict_lock.hpp>
20 #include <boost/thread/mutex.hpp>
21 #include <boost/static_assert.hpp>
22 #include <boost/type_traits/is_same.hpp>
23 #include <boost/detail/lightweight_test.hpp>
27 BOOST_STATIC_ASSERT_MSG((boost::is_same
<boost::strict_lock
<boost::mutex
>::mutex_type
,
28 boost::mutex
>::value
), "");
30 BOOST_STATIC_ASSERT_MSG((boost::is_strict_lock
<boost::strict_lock
<boost::mutex
> >::value
), "");
32 return boost::report_errors();