Realistic 3D camera system
3D camera system components
thread.hpp
Go to the documentation of this file.
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 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 
20 #if !defined(ASIO_HAS_THREADS)
22 #elif defined(ASIO_WINDOWS)
23 # if defined(UNDER_CE)
25 # else
27 # endif
28 #elif defined(ASIO_HAS_PTHREADS)
30 #elif defined(ASIO_HAS_STD_THREAD)
32 #else
33 # error Only Windows, POSIX and std::thread are supported!
34 #endif
35 
36 namespace asio {
37 namespace detail {
38 
39 #if !defined(ASIO_HAS_THREADS)
41 #elif defined(ASIO_WINDOWS)
42 # if defined(UNDER_CE)
43 typedef wince_thread thread;
44 # else
45 typedef win_thread thread;
46 # endif
47 #elif defined(ASIO_HAS_PTHREADS)
48 typedef posix_thread thread;
49 #elif defined(ASIO_HAS_STD_THREAD)
50 typedef std_thread thread;
51 #endif
52 
53 } // namespace detail
54 } // namespace asio
55 
56 #endif // ASIO_DETAIL_THREAD_HPP
null_thread thread
Definition: thread.hpp:40