RemoteTagCache: use IntrusiveList instead of boost::intrusive::list

This commit is contained in:
Max Kellermann 2022-11-10 12:05:33 +01:00
parent 77d257de27
commit 5f2fa1dbe3

View File

@ -24,8 +24,8 @@
#include "tag/Tag.hxx" #include "tag/Tag.hxx"
#include "event/InjectEvent.hxx" #include "event/InjectEvent.hxx"
#include "thread/Mutex.hxx" #include "thread/Mutex.hxx"
#include "util/IntrusiveList.hxx"
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/unordered_set.hpp> #include <boost/intrusive/unordered_set.hpp>
#include <string> #include <string>
@ -46,7 +46,7 @@ class RemoteTagCache final {
struct Item final struct Item final
: public boost::intrusive::unordered_set_base_hook<boost::intrusive::link_mode<boost::intrusive::normal_link>>, : public boost::intrusive::unordered_set_base_hook<boost::intrusive::link_mode<boost::intrusive::normal_link>>,
public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::normal_link>>, public IntrusiveListHook,
RemoteTagHandler RemoteTagHandler
{ {
RemoteTagCache &parent; RemoteTagCache &parent;
@ -89,8 +89,7 @@ class RemoteTagCache final {
}; };
}; };
typedef boost::intrusive::list<Item, using ItemList = IntrusiveList<Item>;
boost::intrusive::constant_time_size<false>> ItemList;
/** /**
* These items have been resolved completely (successful or * These items have been resolved completely (successful or