Realistic 3D camera system
3D camera system components
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 
27 
29 
30 namespace asio {
31 namespace detail {
32 
34  : private noncopyable
35 {
36 public:
37  // Constructor blocks all signals for the calling thread.
39  {
40  }
41 
42  // Destructor restores the previous signal mask.
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 
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