mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-29 15:29:14 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user