]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/asio/detail/impl/timer_queue_ptime.ipp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / asio / detail / impl / timer_queue_ptime.ipp
CommitLineData
7c673cae
FG
1//
2// detail/impl/timer_queue_ptime.ipp
3// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4//
11fdf7f2 5// Copyright (c) 2003-2018 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
26namespace boost {
27namespace asio {
28namespace detail {
29
30timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue()
31{
32}
33
34timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue()
35{
36}
37
38bool 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
44bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const
45{
46 return impl_.empty();
47}
48
49long 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
55long 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
61void 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
67void 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
73std::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
b32b8144
FG
79void timer_queue<time_traits<boost::posix_time::ptime> >::move_timer(
80 per_timer_data& target, per_timer_data& source)
81{
82 impl_.move_timer(target, source);
83}
84
7c673cae
FG
85} // namespace detail
86} // namespace asio
87} // namespace boost
88
7c673cae
FG
89#include <boost/asio/detail/pop_options.hpp>
90
b32b8144
FG
91#endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
92
7c673cae 93#endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP