diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-12 19:28:18 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-12 19:28:18 +0000 |
commit | 6a73dc17c633bfa150a41354f843c91d805ef795 (patch) | |
tree | f439f8505192b0ea88d04f0233e54fb315986b7b /storageframework/src | |
parent | e072003cb1cc8d863ed0766fac78e6fb46b80176 (diff) |
No longer any need to scope the notify call. Also remove comment on timeout.
Diffstat (limited to 'storageframework/src')
-rw-r--r-- | storageframework/src/vespa/storageframework/generic/thread/thread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/storageframework/src/vespa/storageframework/generic/thread/thread.cpp b/storageframework/src/vespa/storageframework/generic/thread/thread.cpp index 2a53b1de329..24ed28d077b 100644 --- a/storageframework/src/vespa/storageframework/generic/thread/thread.cpp +++ b/storageframework/src/vespa/storageframework/generic/thread/thread.cpp @@ -20,9 +20,7 @@ void Thread::interruptAndJoin(std::condition_variable &cv) { interrupt(); - { - cv.notify_all(); - } + cv.notify_all(); join(); } |