diff options
author | Salvage <29021710+Saalvage@users.noreply.github.com> | 2022-12-09 13:41:04 +0100 |
---|---|---|
committer | Salvage <29021710+Saalvage@users.noreply.github.com> | 2022-12-09 16:39:59 +0100 |
commit | c586ac9be2edea86889b44d44cede599a0c4dba5 (patch) | |
tree | 1f6426d0fa21acd1eaacd42ecbc130d002591b6a /src/common/cache_management.cpp | |
parent | 41461514d6f3ba59dc027dbc4a88c0ffb570ea49 (diff) |
Remove the lock entirely as per PR discussion
Correctly unlock mutex before its destruction
As per https://en.cppreference.com/w/cpp/thread/mutex/~mutex destroying a locked mutex is undefined behavior and MSVC++ decides to throw in this case
Swap out unique for scoped lock and readd comment
Diffstat (limited to 'src/common/cache_management.cpp')
0 files changed, 0 insertions, 0 deletions