diff options
author | Max Kellermann <max@duempel.org> | 2015-10-19 15:18:47 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-19 16:00:26 +0200 |
commit | 6bea346c4110f14288726766449bd5c843f8bae5 (patch) | |
tree | 187ecc417812916a99bdea732f530ca8bd710e36 /src/output/plugins/httpd/HttpdInternal.hxx | |
parent | 8d2370635408b9acd392843de96179383a95a4bf (diff) | |
download | mpd-6bea346c4110f14288726766449bd5c843f8bae5.tar.gz mpd-6bea346c4110f14288726766449bd5c843f8bae5.tar.xz mpd-6bea346c4110f14288726766449bd5c843f8bae5.zip |
output/httpd: use boost::intrusive::list instead of std::forward_list
Diffstat (limited to 'src/output/plugins/httpd/HttpdInternal.hxx')
-rw-r--r-- | src/output/plugins/httpd/HttpdInternal.hxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/output/plugins/httpd/HttpdInternal.hxx b/src/output/plugins/httpd/HttpdInternal.hxx index c9f983e17..01498dfcd 100644 --- a/src/output/plugins/httpd/HttpdInternal.hxx +++ b/src/output/plugins/httpd/HttpdInternal.hxx @@ -25,6 +25,7 @@ #ifndef MPD_OUTPUT_HTTPD_INTERNAL_H #define MPD_OUTPUT_HTTPD_INTERNAL_H +#include "HttpdClient.hxx" #include "output/Internal.hxx" #include "output/Timer.hxx" #include "thread/Mutex.hxx" @@ -33,12 +34,6 @@ #include "util/Cast.hxx" #include "Compiler.h" -#ifdef _LIBCPP_VERSION -/* can't use incomplete template arguments with libc++ */ -#include "HttpdClient.hxx" -#endif - -#include <forward_list> #include <queue> #include <list> @@ -135,7 +130,8 @@ private: * A linked list containing all clients which are currently * connected. */ - std::forward_list<HttpdClient> clients; + boost::intrusive::list<HttpdClient, + boost::intrusive::constant_time_size<true>> clients; /** * A temporary buffer for the httpd_output_read_page() @@ -147,7 +143,7 @@ private: * The maximum and current number of clients connected * at the same time. */ - unsigned clients_max, clients_cnt; + unsigned clients_max; public: HttpdOutput(EventLoop &_loop); |