123456789101112131415161718192021222324 |
- // Copyright (C) 2018 Tom Hughes
- //
- // Distributed under the Boost Software License, Version 1.0. (See accompanying
- // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- // <boost/thread/lock_guard.hpp>
- // template <class Mutex> class lock_guard;
- // lock_guard(Mutex& m_)
- #include <boost/thread/lock_guard.hpp>
- #include <boost/thread/mutex.hpp>
- #include <boost/detail/lightweight_test.hpp>
- boost::mutex m;
- void pass()
- {
- {
- boost::lock_guard<boost::mutex> lk0(m);
- }
- boost::lock_guard<boost::mutex> lk1(m);
- }
|