refactor: Replace std::bind with lambdas

Lambdas are shorter and more readable.
Changes are limited to std::thread ctor calls only.
This commit is contained in:
Hennadii Stepanov
2021-04-13 21:22:52 +03:00
parent a508f718f3
commit 792be53d3e
2 changed files with 11 additions and 10 deletions

View File

@@ -349,8 +349,7 @@ void BaseIndex::Start()
return;
}
m_thread_sync = std::thread(&util::TraceThread, GetName(),
std::bind(&BaseIndex::ThreadSync, this));
m_thread_sync = std::thread(&util::TraceThread, GetName(), [this] { ThreadSync(); });
}
void BaseIndex::Stop()