1 // Copyright (C) 2011 Vicente J. Botet Escriba 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/locks.hpp> 7 8 // template <class Mutex> class strict_lock; 9 10 // strict_lock& operator=(strict_lock const&) = delete; 11 12 #include <boost/thread/strict_lock.hpp> 13 #include <boost/thread/mutex.hpp> 14 #include <boost/detail/lightweight_test.hpp> 15 16 boost::mutex m0; 17 boost::mutex m1; 18 main()19int main() 20 { 21 boost::strict_lock<boost::mutex> lk0(m0); 22 boost::strict_lock<boost::mutex> lk1(m1); 23 lk1 = lk0; 24 25 } 26 27 #include "../../../../remove_error_code_unused_warning.hpp" 28 29