Realistic 3D camera system
3D camera system components
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
asio-1.10.6
include
asio
detail
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
22
#include "
asio/detail/noncopyable.hpp
"
23
#include "
asio/detail/throw_error.hpp
"
24
#include "
asio/error.hpp
"
25
26
#include "
asio/detail/push_options.hpp
"
27
28
namespace
asio
{
29
namespace
detail {
30
31
class
null_thread
32
:
private
noncopyable
33
{
34
public
:
35
// Constructor.
36
template
<
typename
Function>
37
null_thread
(Function,
unsigned
int
= 0)
38
{
39
asio::detail::throw_error
(
40
asio::error::operation_not_supported
,
"thread"
);
41
}
42
43
// Destructor.
44
~null_thread
()
45
{
46
}
47
48
// Wait for the thread to exit.
49
void
join
()
50
{
51
}
52
};
53
54
}
// namespace detail
55
}
// namespace asio
56
57
#include "
asio/detail/pop_options.hpp
"
58
59
#endif // !defined(ASIO_HAS_THREADS)
60
61
#endif // ASIO_DETAIL_NULL_THREAD_HPP
asio::detail::null_thread::~null_thread
~null_thread()
Definition:
null_thread.hpp:44
asio::detail::throw_error
void throw_error(const asio::error_code &err)
Definition:
throw_error.hpp:31
asio::detail::null_thread::join
void join()
Definition:
null_thread.hpp:49
asio::detail::null_thread::null_thread
null_thread(Function, unsigned int=0)
Definition:
null_thread.hpp:37
config.hpp
asio::detail::noncopyable
Definition:
noncopyable.hpp:25
push_options.hpp
pop_options.hpp
noncopyable.hpp
error.hpp
throw_error.hpp
asio::detail::null_thread
Definition:
null_thread.hpp:31
asio
Definition:
async_result.hpp:23
asio::error::operation_not_supported
Operation not supported.
Definition:
error.hpp:166
Generated by
1.8.11