1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef ASIO_DETAIL_EVENTFD_SELECT_INTERRUPTER_HPP
- #define ASIO_DETAIL_EVENTFD_SELECT_INTERRUPTER_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include "asio/detail/config.hpp"
- #if defined(ASIO_HAS_EVENTFD)
- #include "asio/detail/push_options.hpp"
- namespace asio {
- namespace detail {
- class eventfd_select_interrupter
- {
- public:
-
- ASIO_DECL eventfd_select_interrupter();
-
- ASIO_DECL ~eventfd_select_interrupter();
-
- ASIO_DECL void recreate();
-
- ASIO_DECL void interrupt();
-
- ASIO_DECL bool reset();
-
- int read_descriptor() const
- {
- return read_descriptor_;
- }
- private:
-
- ASIO_DECL void open_descriptors();
-
- ASIO_DECL void close_descriptors();
-
-
-
-
- int read_descriptor_;
-
-
-
-
- int write_descriptor_;
- };
- }
- }
- #include "asio/detail/pop_options.hpp"
- #if defined(ASIO_HEADER_ONLY)
- # include "asio/detail/impl/eventfd_select_interrupter.ipp"
- #endif
- #endif
- #endif
|