Realistic 3D camera system
3D camera system components
null_thread.hpp
Go to the documentation of this file.
1 //
2 // detail/null_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_NULL_THREAD_HPP
12 #define ASIO_DETAIL_NULL_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)
21 
24 #include "asio/error.hpp"
25 
27 
28 namespace asio {
29 namespace detail {
30 
32  : private noncopyable
33 {
34 public:
35  // Constructor.
36  template <typename Function>
37  null_thread(Function, unsigned int = 0)
38  {
41  }
42 
43  // Destructor.
45  {
46  }
47 
48  // Wait for the thread to exit.
49  void join()
50  {
51  }
52 };
53 
54 } // namespace detail
55 } // namespace asio
56 
58 
59 #endif // !defined(ASIO_HAS_THREADS)
60 
61 #endif // ASIO_DETAIL_NULL_THREAD_HPP
void throw_error(const asio::error_code &err)
Definition: throw_error.hpp:31
null_thread(Function, unsigned int=0)
Definition: null_thread.hpp:37
Operation not supported.
Definition: error.hpp:166