summaryrefslogtreecommitdiff
path: root/boost/asio/detail/timer_queue_ptime.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/asio/detail/timer_queue_ptime.hpp')
-rw-r--r--boost/asio/detail/timer_queue_ptime.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/boost/asio/detail/timer_queue_ptime.hpp b/boost/asio/detail/timer_queue_ptime.hpp
index 0693acca83..d1934f1375 100644
--- a/boost/asio/detail/timer_queue_ptime.hpp
+++ b/boost/asio/detail/timer_queue_ptime.hpp
@@ -15,13 +15,15 @@
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
+#include <boost/asio/detail/config.hpp>
+
+#if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
+
#include <boost/asio/time_traits.hpp>
#include <boost/asio/detail/timer_queue.hpp>
#include <boost/asio/detail/push_options.hpp>
-#if defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
-
namespace boost {
namespace asio {
namespace detail {
@@ -76,6 +78,10 @@ public:
per_timer_data& timer, op_queue<operation>& ops,
std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)());
+ // Move operations from one timer to another, empty timer.
+ BOOST_ASIO_DECL void move_timer(per_timer_data& target,
+ per_timer_data& source);
+
private:
timer_queue<forwarding_posix_time_traits> impl_;
};
@@ -84,12 +90,12 @@ private:
} // namespace asio
} // namespace boost
-#endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
-
#include <boost/asio/detail/pop_options.hpp>
#if defined(BOOST_ASIO_HEADER_ONLY)
# include <boost/asio/detail/impl/timer_queue_ptime.ipp>
#endif // defined(BOOST_ASIO_HEADER_ONLY)
+#endif // defined(BOOST_ASIO_HAS_BOOST_DATE_TIME)
+
#endif // BOOST_ASIO_DETAIL_TIMER_QUEUE_PTIME_HPP