5 // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_ASIO_DETAIL_THREAD_HPP
12 #define BOOST_ASIO_DETAIL_THREAD_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #if !defined(BOOST_ASIO_HAS_THREADS)
21 # include <boost/asio/detail/null_thread.hpp>
22 #elif defined(BOOST_ASIO_HAS_PTHREADS)
23 # include <boost/asio/detail/posix_thread.hpp>
24 #elif defined(BOOST_ASIO_WINDOWS)
25 # if defined(UNDER_CE)
26 # include <boost/asio/detail/wince_thread.hpp>
27 # elif defined(BOOST_ASIO_WINDOWS_APP)
28 # include <boost/asio/detail/winapp_thread.hpp>
30 # include <boost/asio/detail/win_thread.hpp>
32 #elif defined(BOOST_ASIO_HAS_STD_THREAD)
33 # include <boost/asio/detail/std_thread.hpp>
35 # error Only Windows, POSIX and std::thread are supported!
42 #if !defined(BOOST_ASIO_HAS_THREADS)
43 typedef null_thread thread;
44 #elif defined(BOOST_ASIO_HAS_PTHREADS)
45 typedef posix_thread thread;
46 #elif defined(BOOST_ASIO_WINDOWS)
47 # if defined(UNDER_CE)
48 typedef wince_thread thread;
49 # elif defined(BOOST_ASIO_WINDOWS_APP)
50 typedef winapp_thread thread;
52 typedef win_thread thread;
54 #elif defined(BOOST_ASIO_HAS_STD_THREAD)
55 typedef std_thread thread;
62 #endif // BOOST_ASIO_DETAIL_THREAD_HPP