output/httpd: use IntrusiveList instead of boost::intrusive::list
This commit is contained in:
parent
4041d87c34
commit
89d950e9a7
@ -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.
|
||||
*/
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user