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_signal_blocker.hpp
Go to the documentation of this file.
1
//
2
// detail/null_signal_blocker.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_SIGNAL_BLOCKER_HPP
12
#define ASIO_DETAIL_NULL_SIGNAL_BLOCKER_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
|| defined(ASIO_WINDOWS) \
22
|| defined(ASIO_WINDOWS_RUNTIME) \
23
|| defined(__CYGWIN__) \
24
|| defined(__SYMBIAN32__)
25
26
#include "
asio/detail/noncopyable.hpp
"
27
28
#include "
asio/detail/push_options.hpp
"
29
30
namespace
asio
{
31
namespace
detail {
32
33
class
null_signal_blocker
34
:
private
noncopyable
35
{
36
public
:
37
// Constructor blocks all signals for the calling thread.
38
null_signal_blocker
()
39
{
40
}
41
42
// Destructor restores the previous signal mask.
43
~null_signal_blocker
()
44
{
45
}
46
47
// Block all signals for the calling thread.
48
void
block
()
49
{
50
}
51
52
// Restore the previous signal mask.
53
void
unblock
()
54
{
55
}
56
};
57
58
}
// namespace detail
59
}
// namespace asio
60
61
#include "
asio/detail/pop_options.hpp
"
62
63
#endif // !defined(ASIO_HAS_THREADS)
64
// || defined(ASIO_WINDOWS)
65
// || defined(ASIO_WINDOWS_RUNTIME)
66
// || defined(__CYGWIN__)
67
// || defined(__SYMBIAN32__)
68
69
#endif // ASIO_DETAIL_NULL_SIGNAL_BLOCKER_HPP
asio::detail::null_signal_blocker::~null_signal_blocker
~null_signal_blocker()
Definition:
null_signal_blocker.hpp:43
config.hpp
asio::detail::noncopyable
Definition:
noncopyable.hpp:25
push_options.hpp
asio::detail::null_signal_blocker::block
void block()
Definition:
null_signal_blocker.hpp:48
pop_options.hpp
noncopyable.hpp
asio::detail::null_signal_blocker::null_signal_blocker
null_signal_blocker()
Definition:
null_signal_blocker.hpp:38
asio::detail::null_signal_blocker::unblock
void unblock()
Definition:
null_signal_blocker.hpp:53
asio::detail::null_signal_blocker
Definition:
null_signal_blocker.hpp:33
asio
Definition:
async_result.hpp:23
Generated by
1.8.11