boost_no_cxx11_hdr_thread.ipp 721 B

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