fix doc example typo
[boost.git] / boost / asio / detail / thread.hpp
blob3db58053867f01cc9e1afc5f559f7ce82a71cb7c
1 //
2 // thread.hpp
3 // ~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
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)
9 //
11 #ifndef BOOST_ASIO_DETAIL_THREAD_HPP
12 #define BOOST_ASIO_DETAIL_THREAD_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
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>
29 # else
30 # include <boost/asio/detail/win_thread.hpp>
31 # endif
32 #elif defined(BOOST_HAS_PTHREADS)
33 # include <boost/asio/detail/posix_thread.hpp>
34 #else
35 # error Only Windows and POSIX are supported!
36 #endif
38 namespace boost {
39 namespace asio {
40 namespace detail {
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;
47 # else
48 typedef win_thread thread;
49 # endif
50 #elif defined(BOOST_HAS_PTHREADS)
51 typedef posix_thread thread;
52 #endif
54 } // namespace detail
55 } // namespace asio
56 } // namespace boost
58 #include <boost/asio/detail/pop_options.hpp>
60 #endif // BOOST_ASIO_DETAIL_THREAD_HPP