PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://pythonocc.googlecode.com/
C++ Header | 48 lines | 30 code | 9 blank | 9 comment | 1 complexity | 64e6bbce9018ef972de856dd41ca7069 MD5 | raw file
 1//
 2// timer_scheduler_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_TIMER_SCHEDULER_FWD_HPP
12#define BOOST_ASIO_DETAIL_TIMER_SCHEDULER_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 win_iocp_io_service timer_scheduler;
32#elif defined(BOOST_ASIO_HAS_EPOLL)
33typedef epoll_reactor timer_scheduler;
34#elif defined(BOOST_ASIO_HAS_KQUEUE)
35typedef kqueue_reactor timer_scheduler;
36#elif defined(BOOST_ASIO_HAS_DEV_POLL)
37typedef dev_poll_reactor timer_scheduler;
38#else
39typedef select_reactor<false> timer_scheduler;
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_TIMER_SCHEDULER_FWD_HPP