thread/Mutex: remove ScopeLock, use std::lock_guard directly
This commit is contained in:
@@ -72,7 +72,7 @@ io_thread_start()
|
||||
assert(io.loop != nullptr);
|
||||
assert(!io.thread.IsDefined());
|
||||
|
||||
const ScopeLock protect(io.mutex);
|
||||
const std::lock_guard<Mutex> protect(io.mutex);
|
||||
io.thread.Start(io_thread_func, nullptr);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user