output/httpd: use IntrusiveList instead of boost::intrusive::list

This commit is contained in:
Max Kellermann 2022-11-10 12:02:08 +01:00
parent 4041d87c34
commit 89d950e9a7
2 changed files with 6 additions and 8 deletions

View File

@ -23,9 +23,7 @@
#include "Page.hxx" #include "Page.hxx"
#include "event/BufferedSocket.hxx" #include "event/BufferedSocket.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include "util/IntrusiveList.hxx"
#include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
#include <cstddef> #include <cstddef>
#include <list> #include <list>
@ -36,7 +34,8 @@ class HttpdOutput;
class HttpdClient final class HttpdClient final
: BufferedSocket, : BufferedSocket,
public boost::intrusive::list_base_hook<boost::intrusive::link_mode<boost::intrusive::normal_link>> { public IntrusiveListHook
{
/** /**
* The httpd output object this client is connected to. * The httpd output object this client is connected to.
*/ */

View File

@ -34,8 +34,7 @@
#include "event/InjectEvent.hxx" #include "event/InjectEvent.hxx"
#include "util/Cast.hxx" #include "util/Cast.hxx"
#include "util/Compiler.h" #include "util/Compiler.h"
#include "util/IntrusiveList.hxx"
#include <boost/intrusive/list.hpp>
#include <queue> #include <queue>
#include <list> #include <list>
@ -139,8 +138,8 @@ private:
* A linked list containing all clients which are currently * A linked list containing all clients which are currently
* connected. * connected.
*/ */
boost::intrusive::list<HttpdClient, IntrusiveList<HttpdClient, IntrusiveListBaseHookTraits<HttpdClient>,
boost::intrusive::constant_time_size<true>> clients; true> clients;
/** /**
* The maximum number of clients connected at the same time. * The maximum number of clients connected at the same time.