]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/asio/detail/thread.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / asio / detail / thread.hpp
CommitLineData
7c673cae
FG
1//
2// detail/thread.hpp
3// ~~~~~~~~~~~~~~~~~
4//
f67539c2 5// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7c673cae
FG
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//
10
11#ifndef BOOST_ASIO_DETAIL_THREAD_HPP
12#define BOOST_ASIO_DETAIL_THREAD_HPP
13
14#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
18#include <boost/asio/detail/config.hpp>
19
20#if !defined(BOOST_ASIO_HAS_THREADS)
21# include <boost/asio/detail/null_thread.hpp>
20effc67
TL
22#elif defined(BOOST_ASIO_HAS_PTHREADS)
23# include <boost/asio/detail/posix_thread.hpp>
7c673cae 24#elif defined(BOOST_ASIO_WINDOWS)
b32b8144
FG
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>
7c673cae
FG
29# else
30# include <boost/asio/detail/win_thread.hpp>
31# endif
7c673cae
FG
32#elif defined(BOOST_ASIO_HAS_STD_THREAD)
33# include <boost/asio/detail/std_thread.hpp>
34#else
35# error Only Windows, POSIX and std::thread are supported!
36#endif
37
38namespace boost {
39namespace asio {
40namespace detail {
41
42#if !defined(BOOST_ASIO_HAS_THREADS)
43typedef null_thread thread;
20effc67
TL
44#elif defined(BOOST_ASIO_HAS_PTHREADS)
45typedef posix_thread thread;
7c673cae 46#elif defined(BOOST_ASIO_WINDOWS)
b32b8144
FG
47# if defined(UNDER_CE)
48typedef wince_thread thread;
49# elif defined(BOOST_ASIO_WINDOWS_APP)
50typedef winapp_thread thread;
7c673cae
FG
51# else
52typedef win_thread thread;
53# endif
7c673cae
FG
54#elif defined(BOOST_ASIO_HAS_STD_THREAD)
55typedef std_thread thread;
56#endif
57
58} // namespace detail
59} // namespace asio
60} // namespace boost
61
62#endif // BOOST_ASIO_DETAIL_THREAD_HPP