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 "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.
|
||||||
*/
|
*/
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user