timer_scheduler_fwd.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // detail/timer_scheduler_fwd.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2021 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/config.hpp>
  16. namespace boost {
  17. namespace asio {
  18. namespace detail {
  19. #if defined(BOOST_ASIO_WINDOWS_RUNTIME)
  20. typedef class winrt_timer_scheduler timer_scheduler;
  21. #elif defined(BOOST_ASIO_HAS_IOCP)
  22. typedef class win_iocp_io_context timer_scheduler;
  23. #elif defined(BOOST_ASIO_HAS_EPOLL)
  24. typedef class epoll_reactor timer_scheduler;
  25. #elif defined(BOOST_ASIO_HAS_KQUEUE)
  26. typedef class kqueue_reactor timer_scheduler;
  27. #elif defined(BOOST_ASIO_HAS_DEV_POLL)
  28. typedef class dev_poll_reactor timer_scheduler;
  29. #else
  30. typedef class select_reactor timer_scheduler;
  31. #endif
  32. } // namespace detail
  33. } // namespace asio
  34. } // namespace boost
  35. #endif // BOOST_ASIO_DETAIL_TIMER_SCHEDULER_FWD_HPP