[orc-rt] Prefer std::scoped_lock to std::lock_guard. NFCI. (#179165)
This commit is contained in:
parent
496d871ff3
commit
ec6a219fc3
@ -100,7 +100,7 @@ void Session::shutdownComplete() {
|
||||
|
||||
std::unique_ptr<TaskDispatcher> TmpDispatcher;
|
||||
{
|
||||
std::lock_guard<std::mutex> Lock(M);
|
||||
std::scoped_lock<std::mutex> Lock(M);
|
||||
TmpDispatcher = std::move(Dispatcher);
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ void Session::shutdownComplete() {
|
||||
|
||||
std::vector<OnShutdownCompleteFn> OnCompletes;
|
||||
{
|
||||
std::lock_guard<std::mutex> Lock(M);
|
||||
std::scoped_lock<std::mutex> Lock(M);
|
||||
SI->Complete = true;
|
||||
OnCompletes = std::move(SI->OnCompletes);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user