From 6a73dc17c633bfa150a41354f843c91d805ef795 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 12 Oct 2020 19:28:18 +0000 Subject: No longer any need to scope the notify call. Also remove comment on timeout. --- storageframework/src/vespa/storageframework/generic/thread/thread.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'storageframework') 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(); } -- cgit v1.2.3