Chris@16: // Chris@16: // detail/signal_blocker.hpp Chris@16: // ~~~~~~~~~~~~~~~~~~~~~~~~~ Chris@16: // Chris@101: // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: Chris@16: #ifndef BOOST_ASIO_DETAIL_SIGNAL_BLOCKER_HPP Chris@16: #define BOOST_ASIO_DETAIL_SIGNAL_BLOCKER_HPP Chris@16: Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: # pragma once Chris@16: #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) Chris@16: Chris@16: #include Chris@16: Chris@16: #if !defined(BOOST_ASIO_HAS_THREADS) || defined(BOOST_ASIO_WINDOWS) \ Chris@16: || defined(BOOST_ASIO_WINDOWS_RUNTIME) \ Chris@16: || defined(__CYGWIN__) || defined(__SYMBIAN32__) Chris@16: # include Chris@16: #elif defined(BOOST_ASIO_HAS_PTHREADS) Chris@16: # include Chris@16: #else Chris@16: # error Only Windows and POSIX are supported! Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: namespace asio { Chris@16: namespace detail { Chris@16: Chris@16: #if !defined(BOOST_ASIO_HAS_THREADS) || defined(BOOST_ASIO_WINDOWS) \ Chris@16: || defined(BOOST_ASIO_WINDOWS_RUNTIME) \ Chris@16: || defined(__CYGWIN__) || defined(__SYMBIAN32__) Chris@16: typedef null_signal_blocker signal_blocker; Chris@16: #elif defined(BOOST_ASIO_HAS_PTHREADS) Chris@16: typedef posix_signal_blocker signal_blocker; Chris@16: #endif Chris@16: Chris@16: } // namespace detail Chris@16: } // namespace asio Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_ASIO_DETAIL_SIGNAL_BLOCKER_HPP