We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b515f9 commit cf86a3eCopy full SHA for cf86a3e
google/cloud/storage/async/object_descriptor_connection.h
@@ -68,7 +68,7 @@ class ObjectDescriptorConnection {
68
* A descriptor is open if it has not been cancelled and has not hit a
69
* permanent failure.
70
*/
71
- virtual bool IsOpen() const { return true; }
+ virtual bool IsOpen() const = 0;
72
};
73
74
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
google/cloud/storage/internal/async/object_descriptor_impl.cc
@@ -66,7 +66,7 @@ void ObjectDescriptorImpl::Start(
66
67
bool ObjectDescriptorImpl::IsOpen() const {
{
- std::unique_lock<std::mutex> lk(mu_);
+ std::scoped_lock<std::mutex> lk(mu_);
if (cancelled_) return false;
if (stream_manager_->Empty()) return false;
}
0 commit comments