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 "event/BufferedSocket.hxx"
#include "util/Compiler.h"
#include <boost/intrusive/link_mode.hpp>
#include <boost/intrusive/list_hook.hpp>
#include "util/IntrusiveList.hxx"
#include <cstddef>
#include <list>
@ -36,7 +34,8 @@ class HttpdOutput;
class HttpdClient final
: 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.
*/

View File

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