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.
This commit is contained in:
Max Kellermann
2014-09-28 19:18:48 +02:00
parent 3560dc4be6
commit fb4e6ac923
3 changed files with 18 additions and 40 deletions

@@ -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) {}