We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e325c79 commit d1d3ee7Copy full SHA for d1d3ee7
indra/llcommon/threadpool.cpp
@@ -120,8 +120,11 @@ void LL::ThreadPoolBase::close()
120
mQueue->close();
121
for (auto& pair: mThreads)
122
{
123
- LL_DEBUGS("ThreadPool") << mName << " waiting on thread " << pair.first << LL_ENDL;
124
- pair.second.join();
+ if (pair.second.joinable())
+ {
125
+ LL_DEBUGS("ThreadPool") << mName << " waiting on thread " << pair.first << LL_ENDL;
126
+ pair.second.join();
127
+ }
128
}
129
LL_DEBUGS("ThreadPool") << mName << " shutdown complete" << LL_ENDL;
130
0 commit comments