Age | Commit message (Collapse) | Author |
|
|
|
std::all_of becomes constexpr in C++20. I'm not sure it results in better
performance.
Found with useStlAlgorithm
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
The former was deprecated with C++14.
According to the C++11 and C++17 standards, both files are identical.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
|
|
Behave like STL.
|
|
|
|
|
|
|
|
This eliminates some overhead, because the compiler doesn't need to
consider these functions throwing.
|
|
|
|
|
|
|
|
nfs_destroy_context() will invoke all pending callbacks with
err==-EINTR. In CancellableCallback::Callback(), this will invoke
NfsConnection::DeferClose(), which however is only designed to be
called from nfs_service(). In non-debug mode, this will leak memory
because nfs_close_async() is never called.
Workaround: before nfs_destroy_context(), invoke nfs_close_async() on
all pending file handles.
|
|
If an async opertion is in progress, nfs_close_async() will make
libnfs crash because the RPC callback will dereference an object that
was freed by nfs_close_async().
|
|
Reduce Remove() overhead because we don't have to walk the list to
find an iterator by reference.
|
|
More robust and cancellable.
|