提交 673ddc9d 编写于 作者: A Azat Khuzhin

Drop superfluous locking for atomic in DirectoryMonitor

上级 abbeb13c
......@@ -100,10 +100,7 @@ StorageDistributedDirectoryMonitor::~StorageDistributedDirectoryMonitor()
{
if (!quit)
{
{
quit = true;
std::lock_guard lock{mutex};
}
quit = true;
cond.notify_one();
thread.join();
}
......@@ -122,10 +119,7 @@ void StorageDistributedDirectoryMonitor::shutdownAndDropAllData()
{
if (!quit)
{
{
quit = true;
std::lock_guard lock{mutex};
}
quit = true;
cond.notify_one();
thread.join();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册