12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef BOOST_ASIO_DETAIL_PIPE_SELECT_INTERRUPTER_HPP
- #define BOOST_ASIO_DETAIL_PIPE_SELECT_INTERRUPTER_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #if !defined(BOOST_ASIO_WINDOWS)
- #if !defined(BOOST_ASIO_WINDOWS_RUNTIME)
- #if !defined(__CYGWIN__)
- #if !defined(__SYMBIAN32__)
- #if !defined(BOOST_ASIO_HAS_EVENTFD)
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- namespace detail {
- class pipe_select_interrupter
- {
- public:
-
- BOOST_ASIO_DECL pipe_select_interrupter();
-
- BOOST_ASIO_DECL ~pipe_select_interrupter();
-
- BOOST_ASIO_DECL void recreate();
-
- BOOST_ASIO_DECL void interrupt();
-
- BOOST_ASIO_DECL bool reset();
-
- int read_descriptor() const
- {
- return read_descriptor_;
- }
- private:
-
- BOOST_ASIO_DECL void open_descriptors();
-
- BOOST_ASIO_DECL void close_descriptors();
-
-
-
-
- int read_descriptor_;
-
-
-
- int write_descriptor_;
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #if defined(BOOST_ASIO_HEADER_ONLY)
- # include <boost/asio/detail/impl/pipe_select_interrupter.ipp>
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
- #endif
|