thread/Mutex: remove ScopeLock, use std::lock_guard directly

This commit is contained in:
Max Kellermann
2017-01-03 07:11:57 +01:00
parent a42021655c
commit 2e182e84c3
51 changed files with 158 additions and 160 deletions

View File

@@ -240,7 +240,7 @@ AsyncInputStream::AppendToBuffer(const void *data, size_t append_size)
void
AsyncInputStream::DeferredResume()
{
const ScopeLock protect(mutex);
const std::lock_guard<Mutex> protect(mutex);
try {
Resume();
@@ -253,7 +253,7 @@ AsyncInputStream::DeferredResume()
void
AsyncInputStream::DeferredSeek()
{
const ScopeLock protect(mutex);
const std::lock_guard<Mutex> protect(mutex);
if (seek_state != SeekState::SCHEDULED)
return;