We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0fb38a commit 21fddd4Copy full SHA for 21fddd4
2 files changed
Common/Utils/include/CommonUtils/FileFetcher.h
@@ -104,6 +104,7 @@ class FileFetcher
104
size_t mNFilesProc = 0;
105
size_t mNFilesProcOK = 0;
106
mutable std::mutex mMtx;
107
+ std::mutex mMtxStop;
108
std::thread mFetcherThread{};
109
110
ClassDefNV(FileFetcher, 1);
Common/Utils/src/FileFetcher.cxx
@@ -196,6 +196,7 @@ void FileFetcher::start()
196
void FileFetcher::stop()
197
{
198
mRunning = false;
199
+ std::lock_guard<std::mutex> lock(mMtxStop);
200
if (mFetcherThread.joinable()) {
201
mFetcherThread.join();
202
}
0 commit comments