mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
Add mutex at termination.
This commit is contained in:
parent
41f2a4c64b
commit
7c0c68ce1f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user