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
tss_ptr.hpp
Go to the documentation of this file.
1
//
2
// detail/tss_ptr.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_TSS_PTR_HPP
12
#define ASIO_DETAIL_TSS_PTR_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
# include "
asio/detail/null_tss_ptr.hpp
"
22
#elif defined(ASIO_HAS_THREAD_KEYWORD_EXTENSION)
23
# include "
asio/detail/keyword_tss_ptr.hpp
"
24
#elif defined(ASIO_WINDOWS)
25
# include "
asio/detail/win_tss_ptr.hpp
"
26
#elif defined(ASIO_HAS_PTHREADS)
27
# include "
asio/detail/posix_tss_ptr.hpp
"
28
#else
29
# error Only Windows and POSIX are supported!
30
#endif
31
32
#include "
asio/detail/push_options.hpp
"
33
34
namespace
asio
{
35
namespace
detail {
36
37
template
<
typename
T>
38
class
tss_ptr
39
#if !defined(ASIO_HAS_THREADS)
40
:
public
null_tss_ptr
<T>
41
#elif defined(ASIO_HAS_THREAD_KEYWORD_EXTENSION)
42
:
public
keyword_tss_ptr<T>
43
#elif defined(ASIO_WINDOWS)
44
:
public
win_tss_ptr<T>
45
#elif defined(ASIO_HAS_PTHREADS)
46
:
public
posix_tss_ptr<T>
47
#endif
48
{
49
public
:
50
void
operator=
(T* value)
51
{
52
#if !defined(ASIO_HAS_THREADS)
53
null_tss_ptr<T>::operator=
(value);
54
#elif defined(ASIO_HAS_THREAD_KEYWORD_EXTENSION)
55
keyword_tss_ptr<T>::operator=(value);
56
#elif defined(ASIO_WINDOWS)
57
win_tss_ptr<T>::operator=(value);
58
#elif defined(ASIO_HAS_PTHREADS)
59
posix_tss_ptr<T>::operator=(value);
60
#endif
61
}
62
};
63
64
}
// namespace detail
65
}
// namespace asio
66
67
#include "
asio/detail/pop_options.hpp
"
68
69
#endif // ASIO_DETAIL_TSS_PTR_HPP
win_tss_ptr.hpp
asio::detail::null_tss_ptr
Definition:
null_tss_ptr.hpp:30
asio::detail::tss_ptr
Definition:
tss_ptr.hpp:38
config.hpp
push_options.hpp
asio::detail::tss_ptr::operator=
void operator=(T *value)
Definition:
tss_ptr.hpp:50
asio::detail::null_tss_ptr::operator=
void operator=(T *value)
Definition:
null_tss_ptr.hpp:52
pop_options.hpp
null_tss_ptr.hpp
posix_tss_ptr.hpp
asio
Definition:
async_result.hpp:23
keyword_tss_ptr.hpp
Generated by
1.8.11