1//
2// detail/impl/timer_queue_ptime.ipp
3// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4//
5// Copyright (c) 2003-2015 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_IMPL_TIMER_QUEUE_PTIME_IPP
12#define BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
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/config.hpp>
19#include <boost/asio/detail/timer_queue_ptime.hpp>
20
21#include <boost/asio/detail/push_options.hpp>
22
23#if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
24
25namespace boost {
26namespace asio {
27namespace detail {
28
29timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue()
30{
31}
32
33timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue()
34{
35}
36
37bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer(
38 const time_type& time, per_timer_data& timer, wait_op* op)
39{
40 return impl_.enqueue_timer(time, timer, op);
41}
42
43bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const
44{
45 return impl_.empty();
46}
47
48long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec(
49 long max_duration) const
50{
51 return impl_.wait_duration_msec(max_duration);
52}
53
54long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec(
55 long max_duration) const
56{
57 return impl_.wait_duration_usec(max_duration);
58}
59
60void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers(
61 op_queue<operation>& ops)
62{
63 impl_.get_ready_timers(ops);
64}
65
66void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers(
67 op_queue<operation>& ops)
68{
69 impl_.get_all_timers(ops);
70}
71
72std::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)
74{
75 return impl_.cancel_timer(timer, ops, max_cancelled);
76}
77
78} // namespace detail
79} // namespace asio
80} // namespace boost
81
82#endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
83
84#include <boost/asio/detail/pop_options.hpp>
85
86#endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
87