]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/lock_guard_adopt_lock_compile_pass.cpp
1 // Copyright (C) 2018 Tom Hughes
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/lock_guard.hpp>
8 // template <class Mutex> class lock_guard;
10 // lock_guard(Mutex& m_, adopt_lock_t)
12 #include <boost/thread/lock_guard.hpp>
13 #include <boost/thread/mutex.hpp>
14 #include <boost/detail/lightweight_test.hpp>
21 boost::lock_guard
<boost::mutex
> lk(m
, boost::adopt_lock
);