thread_only.hpp 803 B

1234567891011121314151617181920212223242526272829
  1. #ifndef BOOST_THREAD_THREAD_ONLY_HPP
  2. #define BOOST_THREAD_THREAD_ONLY_HPP
  3. // thread.hpp
  4. //
  5. // (C) Copyright 2013 Vicente J. Botet Escriba
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See
  8. // accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #include <boost/thread/detail/platform.hpp>
  11. #if defined(BOOST_THREAD_PLATFORM_WIN32)
  12. #include <boost/thread/win32/thread_data.hpp>
  13. #elif defined(BOOST_THREAD_PLATFORM_PTHREAD)
  14. #include <boost/thread/pthread/thread_data.hpp>
  15. #else
  16. #error "Boost threads unavailable on this platform"
  17. #endif
  18. #include <boost/thread/detail/thread.hpp>
  19. #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
  20. #include <boost/thread/detail/thread_interruption.hpp>
  21. #endif
  22. #include <boost/thread/condition_variable.hpp>
  23. #endif