diff --git a/src/event/InjectEvent.hxx b/src/event/InjectEvent.hxx index eaf079686..54534acb3 100644 --- a/src/event/InjectEvent.hxx +++ b/src/event/InjectEvent.hxx @@ -21,8 +21,7 @@ #define MPD_INJECT_EVENT_HXX #include "util/BindMethod.hxx" - -#include +#include "util/IntrusiveList.hxx" class EventLoop; @@ -31,8 +30,7 @@ class EventLoop; * * This class is thread-safe. */ -class InjectEvent final - : public boost::intrusive::list_base_hook<> +class InjectEvent final : public SafeLinkIntrusiveListHook { friend class EventLoop; diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index 7a327f1d2..8e621872b 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -33,8 +33,6 @@ #include "WakeFD.hxx" #include "thread/Id.hxx" #include "thread/Mutex.hxx" - -#include #endif #include @@ -80,10 +78,7 @@ class EventLoop final #ifdef HAVE_THREADED_EVENT_LOOP Mutex mutex; - using InjectList = - boost::intrusive::list>, - boost::intrusive::constant_time_size>; + using InjectList = IntrusiveList; InjectList inject; #endif