lock_compile_pass.cpp 381 B

123456789101112131415161718
  1. // Copyright (C) 2017 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. // <boost/thread/mutex.hpp>
  6. // class mutex;
  7. #include <boost/thread/mutex.hpp>
  8. #include <boost/detail/lightweight_test.hpp>
  9. void pass()
  10. {
  11. boost::mutex m0;
  12. m0.lock();
  13. m0.unlock();
  14. }