File indexing completed on 2025-12-15 09:43:52
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_ASIO_DETAIL_TIMER_QUEUE_BASE_HPP
0012 #define BOOST_ASIO_DETAIL_TIMER_QUEUE_BASE_HPP
0013
0014 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
0015 # pragma once
0016 #endif
0017
0018 #include <boost/asio/detail/config.hpp>
0019 #include <boost/asio/detail/noncopyable.hpp>
0020 #include <boost/asio/detail/op_queue.hpp>
0021 #include <boost/asio/detail/operation.hpp>
0022
0023 #include <boost/asio/detail/push_options.hpp>
0024
0025 namespace boost {
0026 namespace asio {
0027 namespace detail {
0028
0029 class timer_queue_base
0030 : private noncopyable
0031 {
0032 public:
0033
0034 timer_queue_base() : next_(0) {}
0035
0036
0037 virtual ~timer_queue_base() {}
0038
0039
0040 virtual bool empty() const = 0;
0041
0042
0043 virtual long wait_duration_msec(long max_duration) const = 0;
0044
0045
0046 virtual long wait_duration_usec(long max_duration) const = 0;
0047
0048
0049 virtual void get_ready_timers(op_queue<operation>& ops) = 0;
0050
0051
0052 virtual void get_all_timers(op_queue<operation>& ops) = 0;
0053
0054 private:
0055 friend class timer_queue_set;
0056
0057
0058 timer_queue_base* next_;
0059 };
0060
0061 template <typename Time_Traits>
0062 class timer_queue;
0063
0064 }
0065 }
0066 }
0067
0068 #include <boost/asio/detail/pop_options.hpp>
0069
0070 #endif