summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp')
-rw-r--r--3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp b/3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp
index 9d3cb7d0c93..937a4ad85fa 100644
--- a/3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp
+++ b/3rdparty/asio/include/asio/detail/timer_queue_ptime.hpp
@@ -2,7 +2,7 @@
// detail/timer_queue_ptime.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
-// Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
+// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -31,7 +31,7 @@ struct forwarding_posix_time_traits : time_traits<boost::posix_time::ptime> {};
// Template specialisation for the commonly used instantation.
template <>
-class timer_queue<time_traits<boost::posix_time::ptime> >
+class timer_queue<time_traits<boost::posix_time::ptime>>
: public timer_queue_base
{
public:
@@ -77,6 +77,10 @@ public:
per_timer_data& timer, op_queue<operation>& ops,
std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)());
+ // Cancel and dequeue operations for the given timer and key.
+ ASIO_DECL void cancel_timer_by_key(per_timer_data* timer,
+ op_queue<operation>& ops, void* cancellation_key);
+
// Move operations from one timer to another, empty timer.
ASIO_DECL void move_timer(per_timer_data& target,
per_timer_data& source);