• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2018 Tom Hughes
2 //
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)
5 
6 // <boost/thread/lock_guard.hpp>
7 
8 // template <class Mutex> class lock_guard;
9 
10 // lock_guard(Mutex& m_)
11 
12 #include <boost/thread/lock_guard.hpp>
13 #include <boost/thread/mutex.hpp>
14 #include <boost/detail/lightweight_test.hpp>
15 
16 boost::mutex m;
17 
fail()18 void fail()
19 {
20   boost::lock_guard<boost::mutex> lk0(m);
21   boost::lock_guard<boost::mutex> lk1(m);
22 }
23