Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:35

0001 //
0002 // detail/impl/timer_queue_ptime.ipp
0003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0004 //
0005 // Copyright (c) 2003-2023 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_HAS_BOOST_DATE_TIME)
0021 
0022 #include <boost/asio/detail/timer_queue_ptime.hpp>
0023 
0024 #include <boost/asio/detail/push_options.hpp>
0025 
0026 namespace boost {
0027 namespace asio {
0028 namespace detail {
0029 
0030 timer_queue<time_traits<boost::posix_time::ptime>>::timer_queue()
0031 {
0032 }
0033 
0034 timer_queue<time_traits<boost::posix_time::ptime>>::~timer_queue()
0035 {
0036 }
0037 
0038 bool timer_queue<time_traits<boost::posix_time::ptime>>::enqueue_timer(
0039     const time_type& time, per_timer_data& timer, wait_op* op)
0040 {
0041   return impl_.enqueue_timer(time, timer, op);
0042 }
0043 
0044 bool timer_queue<time_traits<boost::posix_time::ptime>>::empty() const
0045 {
0046   return impl_.empty();
0047 }
0048 
0049 long timer_queue<time_traits<boost::posix_time::ptime>>::wait_duration_msec(
0050     long max_duration) const
0051 {
0052   return impl_.wait_duration_msec(max_duration);
0053 }
0054 
0055 long timer_queue<time_traits<boost::posix_time::ptime>>::wait_duration_usec(
0056     long max_duration) const
0057 {
0058   return impl_.wait_duration_usec(max_duration);
0059 }
0060 
0061 void timer_queue<time_traits<boost::posix_time::ptime>>::get_ready_timers(
0062     op_queue<operation>& ops)
0063 {
0064   impl_.get_ready_timers(ops);
0065 }
0066 
0067 void timer_queue<time_traits<boost::posix_time::ptime>>::get_all_timers(
0068     op_queue<operation>& ops)
0069 {
0070   impl_.get_all_timers(ops);
0071 }
0072 
0073 std::size_t timer_queue<time_traits<boost::posix_time::ptime>>::cancel_timer(
0074     per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled)
0075 {
0076   return impl_.cancel_timer(timer, ops, max_cancelled);
0077 }
0078 
0079 void timer_queue<time_traits<boost::posix_time::ptime>>::cancel_timer_by_key(
0080     per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key)
0081 {
0082   impl_.cancel_timer_by_key(timer, ops, cancellation_key);
0083 }
0084 
0085 void timer_queue<time_traits<boost::posix_time::ptime>>::move_timer(
0086     per_timer_data& target, per_timer_data& source)
0087 {
0088   impl_.move_timer(target, source);
0089 }
0090 
0091 } // namespace detail
0092 } // namespace asio
0093 } // namespace boost
0094 
0095 #include <boost/asio/detail/pop_options.hpp>
0096 
0097 #endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
0098 
0099 #endif // BOOST_ASIO_DETAIL_IMPL_TIMER_QUEUE_PTIME_IPP