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:
src/lib/nfs
@@ -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) {}
|
||||
|
||||
|
Reference in New Issue
Block a user