]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/sync/mutual_exclusion/mutex/lock_compile_pass.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / thread / test / sync / mutual_exclusion / mutex / lock_compile_pass.cpp
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
6 // <boost/thread/mutex.hpp>
7
8 // class mutex;
9
10 #include <boost/thread/mutex.hpp>
11 #include <boost/detail/lightweight_test.hpp>
12
13 void pass()
14 {
15 boost::mutex m0;
16 m0.lock();
17 m0.unlock();
18 }