Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:23:08

0001 //
0002 // detail/impl/timer_queue_ptime.ipp
0003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2025 Christopher M. Kohlhoff (chris at kohlhoff dot com)
0006 //
0007 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0008 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 //
0010 
0011 #ifndef BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
0012 #define BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP
0013 
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
0017 
0018 #include <boost/asio/detail/config.hpp>
0019 
0020 #if !defined(BOOST_ASIO_NO_DEPRECATED)
0021 
0022 #if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
0023 
0024 #include <boost/asio/detail/timer_queue_ptime.hpp>
0025 
0026 #include <boost/asio/detail/push_options.hpp>
0027 
0028 namespace boost {
0029 namespace asio {
0030 namespace detail {
0031 
0032 timer_queue<time_traits<boost::posix_time::ptime>>::timer_queue()
0033 {
0034 }
0035 
0036 timer_queue<time_traits<boost::posix_time::ptime>>::~timer_queue()
0037 {
0038 }
0039 
0040 bool timer_queue<time_traits<boost::posix_time::ptime>>::enqueue_timer(
0041     const time_type& time, per_timer_data& timer, wait_op* op)
0042 {
0043   return impl_.enqueue_timer(time, timer, op);
0044 }
0045 
0046 bool timer_queue<time_traits<boost::posix_time::ptime>>::empty() const
0047 {
0048   return impl_.empty();
0049 }
0050 
0051 long timer_queue<time_traits<boost::posix_time::ptime>>::wait_duration_msec(
0052     long max_duration) const
0053 {
0054   return impl_.wait_duration_msec(max_duration);
0055 }
0056 
0057 long timer_queue<time_traits<boost::posix_time::ptime>>::wait_duration_usec(
0058     long max_duration) const
0059 {
0060   return impl_.wait_duration_usec(max_duration);
0061 }
0062 
0063 void timer_queue<time_traits<boost::posix_time::ptime>>::get_ready_timers(
0064     op_queue<operation>& ops)
0065 {
0066   impl_.get_ready_timers(ops);
0067 }
0068 
0069 void timer_queue<time_traits<boost::posix_time::ptime>>::get_all_timers(
0070     op_queue<operation>& ops)
0071 {
0072   impl_.get_all_timers(ops);
0073 }
0074 
0075 std::size_t timer_queue<time_traits<boost::posix_time::ptime>>::cancel_timer(
0076     per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled)
0077 {
0078   return impl_.cancel_timer(timer, ops, max_cancelled);
0079 }
0080 
0081 void timer_queue<time_traits<boost::posix_time::ptime>>::cancel_timer_by_key(
0082     per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key)
0083 {
0084   impl_.cancel_timer_by_key(timer, ops, cancellation_key);
0085 }
0086 
0087 void timer_queue<time_traits<boost::posix_time::ptime>>::move_timer(
0088     per_timer_data& target, per_timer_data& source)
0089 {
0090   impl_.move_timer(target, source);
0091 }
0092 
0093 } // namespace detail
0094 } // namespace asio
0095 } // namespace boost
0096 
0097 #include <boost/asio/detail/pop_options.hpp>
0098 
0099 #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
0100 
0101 #endif // !defined(BOOST_ASIO_NO_DEPRECATED)
0102 
0103 #endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP