]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/thread/test/test_5891.cpp
1 // Copyright (C) 2010 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 #define BOOST_THREAD_VERSION 2
9 #include <boost/thread/thread_only.hpp>
12 using namespace boost
;
17 boost::this_thread::sleep(posix_time::seconds(2));
23 boost::thread
myThread(run
);
24 boost::this_thread::yield();
25 if(myThread
.timed_join(posix_time::seconds(5)))