// 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_, adopt_lock_t) #include #include #include boost::mutex m; void fail() { boost::lock_guard lk(m, boost::adopt_lock); }