Add mutex at termination.

This commit is contained in:
Yarik Briukhovetskyi 2024-11-27 15:42:08 +01:00 committed by GitHub
parent 41f2a4c64b
commit 7c0c68ce1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,7 @@ CancellationChecker& CancellationChecker::getInstance()
void CancellationChecker::terminateThread()
{
std::unique_lock<std::mutex> lock(m);
LOG_TRACE(getLogger("CancellationChecker"), "Stopping CancellationChecker");
stop_thread = true;
cond_var.notify_all();