Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:43:10

0001 //
0002 // detail/reactor.hpp
0003 // ~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2025 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_DETAIL_REACTOR_HPP
0012 #define BOOST_ASIO_DETAIL_REACTOR_HPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 
0020 #if defined(BOOST_ASIO_HAS_IOCP) || defined(BOOST_ASIO_WINDOWS_RUNTIME)
0021 # include <boost/asio/detail/null_reactor.hpp>
0022 #elif defined(BOOST_ASIO_HAS_IO_URING_AS_DEFAULT)
0023 # include <boost/asio/detail/null_reactor.hpp>
0024 #elif defined(BOOST_ASIO_HAS_EPOLL)
0025 # include <boost/asio/detail/epoll_reactor.hpp>
0026 #elif defined(BOOST_ASIO_HAS_KQUEUE)
0027 # include <boost/asio/detail/kqueue_reactor.hpp>
0028 #elif defined(BOOST_ASIO_HAS_DEV_POLL)
0029 # include <boost/asio/detail/dev_poll_reactor.hpp>
0030 #else
0031 # include <boost/asio/detail/select_reactor.hpp>
0032 #endif
0033 
0034 namespace boost {
0035 namespace asio {
0036 namespace detail {
0037 
0038 #if defined(BOOST_ASIO_HAS_IOCP) || defined(BOOST_ASIO_WINDOWS_RUNTIME)
0039 typedef null_reactor reactor;
0040 #elif defined(BOOST_ASIO_HAS_IO_URING_AS_DEFAULT)
0041 typedef null_reactor reactor;
0042 #elif defined(BOOST_ASIO_HAS_EPOLL)
0043 typedef epoll_reactor reactor;
0044 #elif defined(BOOST_ASIO_HAS_KQUEUE)
0045 typedef kqueue_reactor reactor;
0046 #elif defined(BOOST_ASIO_HAS_DEV_POLL)
0047 typedef dev_poll_reactor reactor;
0048 #else
0049 typedef select_reactor reactor;
0050 #endif
0051 
0052 } // namespace detail
0053 } // namespace asio
0054 } // namespace boost
0055 
0056 #endif // BOOST_ASIO_DETAIL_REACTOR_HPP