aboutsummaryrefslogtreecommitdiffstats
path: root/storageframework
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-10-12 19:28:18 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-10-12 19:28:18 +0000
commit6a73dc17c633bfa150a41354f843c91d805ef795 (patch)
treef439f8505192b0ea88d04f0233e54fb315986b7b /storageframework
parente072003cb1cc8d863ed0766fac78e6fb46b80176 (diff)
No longer any need to scope the notify call. Also remove comment on timeout.
Diffstat (limited to 'storageframework')
-rw-r--r--storageframework/src/vespa/storageframework/generic/thread/thread.cpp4
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();
}