1//
2// detail/thread.hpp
3// ~~~~~~~~~~~~~~~~~
4//
5// Copyright (c) 2003-2015 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//
10
11#ifndef ASIO_DETAIL_THREAD_HPP
12#define ASIO_DETAIL_THREAD_HPP
13
14
15#include "asio/detail/config.hpp"
16
17#if   defined(ASIO_HAS_PTHREADS)
18# include "asio/detail/posix_thread.hpp"
19#else
20# include "asio/detail/std_thread.hpp"
21#endif
22
23namespace asio {
24namespace detail {
25
26#if   defined(ASIO_HAS_PTHREADS)
27typedef posix_thread thread;
28#else
29typedef std_thread thread;
30#endif
31
32} // namespace detail
33} // namespace asio
34
35#endif // ASIO_DETAIL_THREAD_HPP
36