...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user