aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Connection.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-09-28 19:18:48 +0200
committerMax Kellermann <max@duempel.org>2014-10-01 19:49:38 +0200
commitfb4e6ac923574a8544c94e4deceaf774a4e2504c (patch)
treeff4a449789f613ad0e08d6ca86560b5dbbb3a475 /src/lib/nfs/Connection.hxx
parent3560dc4be60e6e3c47c687b9702a62a610909546 (diff)
downloadmpd-fb4e6ac923574a8544c94e4deceaf774a4e2504c.tar.gz
mpd-fb4e6ac923574a8544c94e4deceaf774a4e2504c.tar.xz
mpd-fb4e6ac923574a8544c94e4deceaf774a4e2504c.zip
lib/nfs/Cancellable: use boost::intrusive::list
Reduce Remove() overhead because we don't have to walk the list to find an iterator by reference.
Diffstat (limited to '')
-rw-r--r--src/lib/nfs/Connection.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/nfs/Connection.hxx b/src/lib/nfs/Connection.hxx
index cb4126d25..ff3b3658d 100644
--- a/src/lib/nfs/Connection.hxx
+++ b/src/lib/nfs/Connection.hxx
@@ -41,8 +41,8 @@ class NfsConnection : SocketMonitor, DeferredMonitor {
NfsConnection &connection;
public:
- explicit constexpr CancellableCallback(NfsCallback &_callback,
- NfsConnection &_connection)
+ explicit CancellableCallback(NfsCallback &_callback,
+ NfsConnection &_connection)
:CancellablePointer<NfsCallback>(_callback),
connection(_connection) {}