Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 496d871 commit ec6a219Copy full SHA for ec6a219
1 file changed
orc-rt/lib/executor/Session.cpp
@@ -100,15 +100,15 @@ void Session::shutdownComplete() {
100
101
std::unique_ptr<TaskDispatcher> TmpDispatcher;
102
{
103
- std::lock_guard<std::mutex> Lock(M);
+ std::scoped_lock<std::mutex> Lock(M);
104
TmpDispatcher = std::move(Dispatcher);
105
}
106
107
TmpDispatcher->shutdown();
108
109
std::vector<OnShutdownCompleteFn> OnCompletes;
110
111
112
SI->Complete = true;
113
OnCompletes = std::move(SI->OnCompletes);
114
0 commit comments