This commit is contained in:
Timur A. Fatkhullin
2025-07-05 22:37:22 +03:00
parent c9e9115ebc
commit 2b3d8a766b
3 changed files with 42 additions and 33 deletions

View File

@@ -84,7 +84,7 @@ public:
// computing ...
std::scoped_lock lock{_updateMutex};
std::lock_guard lock{_updateMutex};
_data = current_data;
};
@@ -102,7 +102,7 @@ public:
{
using self_t = decltype(self);
std::scoped_lock lock{std::forward<self_t>(self)._updateMutex};
std::lock_guard lock{std::forward<self_t>(self)._updateMutex};
return std::move(std::forward<self_t>(self)._data);
}