Replace unique_lock with scoped_lock (#467)

Fixes #466
This commit is contained in:
cyan317
2023-01-10 17:50:53 +00:00
committed by GitHub
parent c51d696181
commit a377514287
8 changed files with 18 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ Counters::initializeCounter(std::string const& method)
if (methodInfo_.count(method) == 0)
{
lk.unlock();
std::unique_lock ulk(mutex_);
std::scoped_lock ulk(mutex_);
// This calls the default constructor for methodInfo of the method.
methodInfo_[method];