Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ASIO_DETAIL_THREAD_HPP
00012 #define ASIO_DETAIL_THREAD_HPP
00013
00014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
00015 # pragma once
00016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
00017
00018 #include "asio/detail/push_options.hpp"
00019
00020 #include "asio/detail/push_options.hpp"
00021 #include <boost/config.hpp>
00022 #include "asio/detail/pop_options.hpp"
00023
00024 #if !defined(BOOST_HAS_THREADS)
00025 # include "asio/detail/null_thread.hpp"
00026 #elif defined(BOOST_WINDOWS)
00027 # if defined(UNDER_CE)
00028 # include "asio/detail/wince_thread.hpp"
00029 # else
00030 # include "asio/detail/win_thread.hpp"
00031 # endif
00032 #elif defined(BOOST_HAS_PTHREADS)
00033 # include "asio/detail/posix_thread.hpp"
00034 #else
00035 # error Only Windows and POSIX are supported!
00036 #endif
00037
00038 namespace asio {
00039 namespace detail {
00040
00041 #if !defined(BOOST_HAS_THREADS)
00042 typedef null_thread thread;
00043 #elif defined(BOOST_WINDOWS)
00044 # if defined(UNDER_CE)
00045 typedef wince_thread thread;
00046 # else
00047 typedef win_thread thread;
00048 # endif
00049 #elif defined(BOOST_HAS_PTHREADS)
00050 typedef posix_thread thread;
00051 #endif
00052
00053 }
00054 }
00055
00056 #include "asio/detail/pop_options.hpp"
00057
00058 #endif // ASIO_DETAIL_THREAD_HPP