]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/config/test/boost_no_cxx11_hdr_thread.ipp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx11_hdr_thread.ipp
1 // (C) Copyright Beman Dawes 2009
2
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 // See http://www.boost.org/libs/config for more information.
8
9 // MACRO: BOOST_NO_CXX11_HDR_THREAD
10 // TITLE: C++0x header <thread> unavailable
11 // DESCRIPTION: The standard library does not supply C++0x header <thread>
12
13 #include <thread>
14
15 namespace boost_no_cxx11_hdr_thread {
16
17 int test()
18 {
19 using std::thread;
20 using std::this_thread::get_id;
21 using std::this_thread::yield;
22 using std::this_thread::sleep_until;
23 using std::this_thread::sleep_for;
24 return 0;
25 }
26
27 }