]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/mutual_exclusion/locks/nested_strict_lock/copy_ctor_fail.cpp
1 // Copyright (C) 2011 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/locks.hpp>
8 // template <class Mutex> class nested_strict_lock;
10 // nested_strict_lock(nested_strict_lock const&) = delete;
13 #include <boost/thread/lock_types.hpp>
14 #include <boost/thread/strict_lock.hpp>
15 #include <boost/thread/mutex.hpp>
16 #include <boost/detail/lightweight_test.hpp>
23 boost::nested_strict_lock
<boost::unique_lock
<boost::mutex
> > lk0(m0
);
24 boost::nested_strict_lock
<boost::unique_lock
<boost::mutex
> > lk1
= lk0
;
27 #include "../../../../remove_error_code_unused_warning.hpp"