]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_8960.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/thread.hpp>
11 #include <boost/thread.hpp>
12 #include <boost/thread/locks.hpp>
13 #include <boost/chrono.hpp>
14 //#include <boost/bind/bind.hpp>
15 #include <boost/detail/lightweight_test.hpp>
23 boost::condition_variable c1
;
25 boost::unique_lock
<boost::mutex
> l1(m1
);
27 c1
.wait_for(l1
, boost::chrono::seconds(1));
29 catch (std::runtime_error
& ex
)
31 std::cout
<< "EXCEPTION ! " << ex
.what() << std::endl
;
37 std::cout
<< "EXCEPTION ! " << std::endl
;
46 boost::thread
th1(&do_thread
);
52 return boost::report_errors();