11 #ifndef ASIO_DETAIL_TIMER_QUEUE_PTIME_HPP 12 #define ASIO_DETAIL_TIMER_QUEUE_PTIME_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 23 #if defined(ASIO_HAS_BOOST_DATE_TIME) 28 struct forwarding_posix_time_traits : time_traits<boost::posix_time::ptime> {};
32 class timer_queue<time_traits<
boost::posix_time::ptime> >
33 :
public timer_queue_base
37 typedef boost::posix_time::ptime time_type;
40 typedef boost::posix_time::time_duration duration_type;
43 typedef timer_queue<forwarding_posix_time_traits>::per_timer_data
55 ASIO_DECL bool enqueue_timer(
const time_type& time,
56 per_timer_data& timer, wait_op* op);
62 ASIO_DECL virtual long wait_duration_msec(
long max_duration)
const;
65 ASIO_DECL virtual long wait_duration_usec(
long max_duration)
const;
68 ASIO_DECL virtual void get_ready_timers(op_queue<operation>& ops);
71 ASIO_DECL virtual void get_all_timers(op_queue<operation>& ops);
75 per_timer_data& timer, op_queue<operation>& ops,
76 std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)());
79 timer_queue<forwarding_posix_time_traits> impl_;
85 #endif // defined(ASIO_HAS_BOOST_DATE_TIME) 89 #if defined(ASIO_HEADER_ONLY) 91 #endif // defined(ASIO_HEADER_ONLY) 93 #endif // ASIO_DETAIL_TIMER_QUEUE_PTIME_HPP