]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_8455.cpp
1 // Copyright (C) 2013 Vicente Botet
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)
6 #include <boost/thread/mutex.hpp>
10 boost::mutex::scoped_lock
lock(mut
);
11 mut
.unlock(); // A: with this X blocks
12 //lock.unlock(); // No influence if used also if before A
16 boost::mutex::scoped_lock
lock(mut
); // X: blocks with A