]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_11796.cpp
1 // Copyright (C) 2015 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.hpp>
7 #include <boost/chrono.hpp>
14 for (auto ti
= 0; ti
< 1000; ti
++)
16 th
= boost::thread([ti
]()
18 boost::this_thread::sleep_for(boost::chrono::milliseconds(100));
19 std::cout
<< ti
<< std::endl
;
26 // for (int i = 0; i < 10; ++i) {
27 // std::cout << "." << i << std::endl;
28 // boost::this_thread::sleep_for(boost::chrono::milliseconds(100));