diff options
| author | FearlessTobi <thm.frey@gmail.com> | 2019-11-03 08:07:04 +0100 |
|---|---|---|
| committer | FearlessTobi <thm.frey@gmail.com> | 2020-01-23 20:55:26 +0100 |
| commit | e89cbc93dd96a1c95d2ef4a9d1b8f94509276bab (patch) | |
| tree | a9dbc8ebf61179a1ed27f004ab56e767b75bd315 /src/common/thread.h | |
| parent | af272d88d96d5c488d5b5871d98250d41cc3c16a (diff) | |
Address second part of review comments
Diffstat (limited to 'src/common/thread.h')
| -rw-r--r-- | src/common/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index 5584c3bf36..2fc0716855 100644 --- a/src/common/thread.h +++ b/src/common/thread.h @@ -30,7 +30,7 @@ public: template <class Duration> bool WaitFor(const std::chrono::duration<Duration>& time) { - std::unique_lock<std::mutex> lk(mutex); + std::unique_lock lk{mutex}; if (!condvar.wait_for(lk, time, [this] { return is_set; })) return false; is_set = false; |
