PageRenderTime 14ms CodeModel.GetById 6ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/src/contrib/boost/asio/detail/reactor_fwd.hpp

http://pythonocc.googlecode.com/
C++ Header | 48 lines | 30 code | 9 blank | 9 comment | 1 complexity | fe9137570d3ebc0f0c250b839ba735fc MD5 | raw file
 1//
 2// reactor_fwd.hpp
 3// ~~~~~~~~~~~~~~~
 4//
 5// Copyright (c) 2003-2010 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_REACTOR_FWD_HPP
12#define BOOST_ASIO_DETAIL_REACTOR_FWD_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/push_options.hpp>
19
20#include <boost/asio/detail/dev_poll_reactor_fwd.hpp>
21#include <boost/asio/detail/epoll_reactor_fwd.hpp>
22#include <boost/asio/detail/kqueue_reactor_fwd.hpp>
23#include <boost/asio/detail/select_reactor_fwd.hpp>
24#include <boost/asio/detail/win_iocp_io_service_fwd.hpp>
25
26namespace boost {
27namespace asio {
28namespace detail {
29
30#if defined(BOOST_ASIO_HAS_IOCP)
31typedef select_reactor<true> reactor;
32#elif defined(BOOST_ASIO_HAS_EPOLL)
33typedef epoll_reactor reactor;
34#elif defined(BOOST_ASIO_HAS_KQUEUE)
35typedef kqueue_reactor reactor;
36#elif defined(BOOST_ASIO_HAS_DEV_POLL)
37typedef dev_poll_reactor reactor;
38#else
39typedef select_reactor<false> reactor;
40#endif
41
42} // namespace detail
43} // namespace asio
44} // namespace boost
45
46#include <boost/asio/detail/pop_options.hpp>
47
48#endif // BOOST_ASIO_DETAIL_REACTOR_FWD_HPP