diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-13 21:22:52 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-29 18:39:31 +0300 |
commit | 792be53d3e9e366b9f6aeee7a1eeb912fa28062e (patch) | |
tree | 4dca4410f490dafc27f76851f2378be03ace7886 /src/index | |
parent | a508f718f3e087c96a306399582a85df2e1d53ae (diff) |
refactor: Replace std::bind with lambdas
Lambdas are shorter and more readable.
Changes are limited to std::thread ctor calls only.
Diffstat (limited to 'src/index')
-rw-r--r-- | src/index/base.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp index 88d5fbee1d..fc25514f1a 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -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() |