From fb4e6ac923574a8544c94e4deceaf774a4e2504c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 28 Sep 2014 19:18:48 +0200 Subject: 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. --- src/lib/nfs/Connection.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/nfs/Connection.hxx') 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(_callback), connection(_connection) {} -- cgit v1.2.3