*: use std::scoped_lock with implicit template parameter

This commit is contained in:
Max Kellermann
2024-05-23 20:43:31 +02:00
parent 4fc3230fe6
commit 381215fd73
68 changed files with 253 additions and 253 deletions

View File

@@ -23,7 +23,7 @@ BufferingInputStream::BufferingInputStream(InputStreamPtr _input)
BufferingInputStream::~BufferingInputStream() noexcept
{
{
const std::scoped_lock<Mutex> lock(mutex);
const std::scoped_lock lock{mutex};
stop = true;
wake_cond.notify_one();
}
@@ -166,7 +166,7 @@ BufferingInputStream::RunThread() noexcept
{
SetThreadName("buffering");
std::unique_lock<Mutex> lock(mutex);
std::unique_lock lock{mutex};
try {
RunThreadLocked(lock);