2 // detail/impl/timer_queue_ptime.ipp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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)
11 #ifndef BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
12 #define BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
19 #include <boost/asio/detail/timer_queue_ptime.hpp>
21 #include <boost/asio/detail/push_options.hpp>
23 #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
29 timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue()
33 timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue()
37 bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer(
38 const time_type& time, per_timer_data& timer, wait_op* op)
40 return impl_.enqueue_timer(time, timer, op);
43 bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const
48 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec(
49 long max_duration) const
51 return impl_.wait_duration_msec(max_duration);
54 long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec(
55 long max_duration) const
57 return impl_.wait_duration_usec(max_duration);
60 void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers(
61 op_queue<operation>& ops)
63 impl_.get_ready_timers(ops);
66 void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers(
67 op_queue<operation>& ops)
69 impl_.get_all_timers(ops);
72 std::size_t timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer(
73 per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled)
75 return impl_.cancel_timer(timer, ops, max_cancelled);
82 #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
84 #include <boost/asio/detail/pop_options.hpp>
86 #endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP