5 // Copyright (c) 2003-2008 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/push_options.hpp>
20 #include <boost/asio/detail/push_options.hpp>
21 #include <boost/config.hpp>
22 #include <boost/asio/detail/pop_options.hpp>
24 #if !defined(BOOST_HAS_THREADS)
25 # include <boost/asio/detail/null_thread.hpp>
26 #elif defined(BOOST_WINDOWS)
27 # if defined(UNDER_CE)
28 # include <boost/asio/detail/wince_thread.hpp>
30 # include <boost/asio/detail/win_thread.hpp>
32 #elif defined(BOOST_HAS_PTHREADS)
33 # include <boost/asio/detail/posix_thread.hpp>
35 # error Only Windows and POSIX are supported!
42 #if !defined(BOOST_HAS_THREADS)
43 typedef null_thread thread
;
44 #elif defined(BOOST_WINDOWS)
45 # if defined(UNDER_CE)
46 typedef wince_thread thread
;
48 typedef win_thread thread
;
50 #elif defined(BOOST_HAS_PTHREADS)
51 typedef posix_thread thread
;
58 #include <boost/asio/detail/pop_options.hpp>
60 #endif // BOOST_ASIO_DETAIL_THREAD_HPP