summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/run_input.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_input.cxx b/test/run_input.cxx
index eb6acda49..7a5b88e3f 100644
--- a/test/run_input.cxx
+++ b/test/run_input.cxx
@@ -175,9 +175,9 @@ class DumpRemoteTagHandler final : public RemoteTagHandler {
public:
Tag Wait() {
- const std::lock_guard<Mutex> lock(mutex);
+ std::unique_lock<Mutex> lock(mutex);
while (!done)
- cond.wait(mutex);
+ cond.wait(lock);
if (error)
std::rethrow_exception(error);