MCPcopy Create free account
hub / github.com/boostorg/asio / cancel_timer

Method cancel_timer

include/boost/asio/detail/impl/select_reactor.hpp:82–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81template <typename TimeTraits, typename Allocator>
82std::size_t select_reactor::cancel_timer(
83 timer_queue<TimeTraits, Allocator>& queue,
84 typename timer_queue<TimeTraits, Allocator>::per_timer_data& timer,
85 std::size_t max_cancelled)
86{
87 boost::asio::detail::mutex::scoped_lock lock(mutex_);
88 op_queue<operation> ops;
89 std::size_t n = queue.cancel_timer(timer, ops, max_cancelled);
90 lock.unlock();
91 scheduler_.post_deferred_completions(ops);
92 return n;
93}
94
95template <typename TimeTraits, typename Allocator>
96void select_reactor::cancel_timer_by_key(

Callers 1

move_timerMethod · 0.45

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected