diff options
author | Max Kellermann <max@musicpd.org> | 2020-10-08 17:27:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-10-08 20:46:15 +0200 |
commit | 263b0ffdbb6204b37e60a83781804d6a3ebec4f2 (patch) | |
tree | 7d3a698f54152cfd4099f398885ce14fa8dc2490 /src/event/Loop.hxx | |
parent | 22bea5c97eed7ede499bd78608d388549e9e37e4 (diff) |
event/TimerEvent: use auto_unlink hook
Diffstat (limited to 'src/event/Loop.hxx')
-rw-r--r-- | src/event/Loop.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 93080afbe..442b53004 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -64,7 +64,7 @@ class EventLoop final : SocketMonitor using TimerSet = boost::intrusive::multiset<TimerEvent, - boost::intrusive::base_hook<boost::intrusive::set_base_hook<>>, + boost::intrusive::base_hook<boost::intrusive::set_base_hook<boost::intrusive::link_mode<boost::intrusive::auto_unlink>>>, boost::intrusive::compare<TimerCompare>, boost::intrusive::constant_time_size<false>>; TimerSet timers; @@ -186,7 +186,6 @@ public: void AddTimer(TimerEvent &t, std::chrono::steady_clock::duration d) noexcept; - void CancelTimer(TimerEvent &t) noexcept; /** * Schedule a call to DeferEvent::RunDeferred(). |