]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // |
2 | // detail/impl/timer_queue_ptime.ipp | |
3 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 | // | |
1e59de90 | 5 | // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
7c673cae FG |
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> | |
b32b8144 FG |
19 | |
20 | #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME) | |
21 | ||
7c673cae FG |
22 | #include <boost/asio/detail/timer_queue_ptime.hpp> |
23 | ||
24 | #include <boost/asio/detail/push_options.hpp> | |
25 | ||
7c673cae FG |
26 | namespace boost { |
27 | namespace asio { | |
28 | namespace detail { | |
29 | ||
30 | timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue() | |
31 | { | |
32 | } | |
33 | ||
34 | timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue() | |
35 | { | |
36 | } | |
37 | ||
38 | bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer( | |
39 | const time_type& time, per_timer_data& timer, wait_op* op) | |
40 | { | |
41 | return impl_.enqueue_timer(time, timer, op); | |
42 | } | |
43 | ||
44 | bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const | |
45 | { | |
46 | return impl_.empty(); | |
47 | } | |
48 | ||
49 | long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec( | |
50 | long max_duration) const | |
51 | { | |
52 | return impl_.wait_duration_msec(max_duration); | |
53 | } | |
54 | ||
55 | long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec( | |
56 | long max_duration) const | |
57 | { | |
58 | return impl_.wait_duration_usec(max_duration); | |
59 | } | |
60 | ||
61 | void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers( | |
62 | op_queue<operation>& ops) | |
63 | { | |
64 | impl_.get_ready_timers(ops); | |
65 | } | |
66 | ||
67 | void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers( | |
68 | op_queue<operation>& ops) | |
69 | { | |
70 | impl_.get_all_timers(ops); | |
71 | } | |
72 | ||
73 | std::size_t timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer( | |
74 | per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled) | |
75 | { | |
76 | return impl_.cancel_timer(timer, ops, max_cancelled); | |
77 | } | |
78 | ||
1e59de90 TL |
79 | void timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer_by_key( |
80 | per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key) | |
81 | { | |
82 | impl_.cancel_timer_by_key(timer, ops, cancellation_key); | |
83 | } | |
84 | ||
b32b8144 FG |
85 | void timer_queue<time_traits<boost::posix_time::ptime> >::move_timer( |
86 | per_timer_data& target, per_timer_data& source) | |
87 | { | |
88 | impl_.move_timer(target, source); | |
89 | } | |
90 | ||
7c673cae FG |
91 | } // namespace detail |
92 | } // namespace asio | |
93 | } // namespace boost | |
94 | ||
7c673cae FG |
95 | #include <boost/asio/detail/pop_options.hpp> |
96 | ||
b32b8144 FG |
97 | #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME) |
98 | ||
7c673cae | 99 | #endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP |