]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/asio/include/boost/asio/detail/signal_blocker.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / asio / include / boost / asio / detail / signal_blocker.hpp
1 //
2 // detail/signal_blocker.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2016 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 BOOST_ASIO_DETAIL_SIGNAL_BLOCKER_HPP
12 #define BOOST_ASIO_DETAIL_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 <boost/asio/detail/config.hpp>
19
20 #if !defined(BOOST_ASIO_HAS_THREADS) || defined(BOOST_ASIO_WINDOWS) \
21 || defined(BOOST_ASIO_WINDOWS_RUNTIME) \
22 || defined(__CYGWIN__) || defined(__SYMBIAN32__)
23 # include <boost/asio/detail/null_signal_blocker.hpp>
24 #elif defined(BOOST_ASIO_HAS_PTHREADS)
25 # include <boost/asio/detail/posix_signal_blocker.hpp>
26 #else
27 # error Only Windows and POSIX are supported!
28 #endif
29
30 namespace boost {
31 namespace asio {
32 namespace detail {
33
34 #if !defined(BOOST_ASIO_HAS_THREADS) || defined(BOOST_ASIO_WINDOWS) \
35 || defined(BOOST_ASIO_WINDOWS_RUNTIME) \
36 || defined(__CYGWIN__) || defined(__SYMBIAN32__)
37 typedef null_signal_blocker signal_blocker;
38 #elif defined(BOOST_ASIO_HAS_PTHREADS)
39 typedef posix_signal_blocker signal_blocker;
40 #endif
41
42 } // namespace detail
43 } // namespace asio
44 } // namespace boost
45
46 #endif // BOOST_ASIO_DETAIL_SIGNAL_BLOCKER_HPP