// 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) // // template class lock_guard; // lock_guard(Mutex& m_) #include #include #include boost::mutex m; void pass() { { boost::lock_guard lk0(m); } boost::lock_guard lk1(m); }