Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:45

0001 //
0002 // detail/thread.hpp
0003 // ~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_DETAIL_THREAD_HPP
0012 #define BOOST_ASIO_DETAIL_THREAD_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 
0020 #if !defined(BOOST_ASIO_HAS_THREADS)
0021 # include <boost/asio/detail/null_thread.hpp>
0022 #elif defined(BOOST_ASIO_HAS_PTHREADS)
0023 # include <boost/asio/detail/posix_thread.hpp>
0024 #elif defined(BOOST_ASIO_WINDOWS)
0025 # if defined(UNDER_CE)
0026 #  include <boost/asio/detail/wince_thread.hpp>
0027 # elif defined(BOOST_ASIO_WINDOWS_APP)
0028 #  include <boost/asio/detail/winapp_thread.hpp>
0029 # else
0030 #  include <boost/asio/detail/win_thread.hpp>
0031 # endif
0032 #else
0033 # include <boost/asio/detail/std_thread.hpp>
0034 #endif
0035 
0036 namespace boost {
0037 namespace asio {
0038 namespace detail {
0039 
0040 #if !defined(BOOST_ASIO_HAS_THREADS)
0041 typedef null_thread thread;
0042 #elif defined(BOOST_ASIO_HAS_PTHREADS)
0043 typedef posix_thread thread;
0044 #elif defined(BOOST_ASIO_WINDOWS)
0045 # if defined(UNDER_CE)
0046 typedef wince_thread thread;
0047 # elif defined(BOOST_ASIO_WINDOWS_APP)
0048 typedef winapp_thread thread;
0049 # else
0050 typedef win_thread thread;
0051 # endif
0052 #else
0053 typedef std_thread thread;
0054 #endif
0055 
0056 } // namespace detail
0057 } // namespace asio
0058 } // namespace boost
0059 
0060 #endif // BOOST_ASIO_DETAIL_THREAD_HPP