/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. #ifndef BOOST_ASIO_DETAIL_TIMER_SCHEDULER_FWD_HPP
  11. #define BOOST_ASIO_DETAIL_TIMER_SCHEDULER_FWD_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include <boost/asio/detail/push_options.hpp>
  16. #include <boost/asio/detail/dev_poll_reactor_fwd.hpp>
  17. #include <boost/asio/detail/epoll_reactor_fwd.hpp>
  18. #include <boost/asio/detail/kqueue_reactor_fwd.hpp>
  19. #include <boost/asio/detail/select_reactor_fwd.hpp>
  20. #include <boost/asio/detail/win_iocp_io_service_fwd.hpp>
  21. namespace boost {
  22. namespace asio {
  23. namespace detail {
  24. #if defined(BOOST_ASIO_HAS_IOCP)
  25. typedef win_iocp_io_service timer_scheduler;
  26. #elif defined(BOOST_ASIO_HAS_EPOLL)
  27. typedef epoll_reactor timer_scheduler;
  28. #elif defined(BOOST_ASIO_HAS_KQUEUE)
  29. typedef kqueue_reactor timer_scheduler;
  30. #elif defined(BOOST_ASIO_HAS_DEV_POLL)
  31. typedef dev_poll_reactor timer_scheduler;
  32. #else
  33. typedef select_reactor<false> timer_scheduler;
  34. #endif
  35. } // namespace detail
  36. } // namespace asio
  37. } // namespace boost
  38. #include <boost/asio/detail/pop_options.hpp>
  39. #endif // BOOST_ASIO_DETAIL_TIMER_SCHEDULER_FWD_HPP