summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-07-28 18:16:07 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-07-28 18:16:07 +0000
commit6a742846525d89e8e53972919ab6ffdde6fedeec (patch)
tree12a5117515bc26c624239d45410bd92f7d721b2f
parent27279feb783691ed13919d0f9844381c9a2ac094 (diff)
downloadbcm5719-llvm-6a742846525d89e8e53972919ab6ffdde6fedeec.tar.gz
bcm5719-llvm-6a742846525d89e8e53972919ab6ffdde6fedeec.zip
Host: correct use of std::condition_variable::wait_for
std::condition::wait_for takes a std::unique_lock<T>. The previous commit accidentally left a reference to `m_mutex` instead of `lock`. Update that. Should restore the android lldb builder to green. llvm-svn: 277013
-rw-r--r--lldb/include/lldb/Host/Predicate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/include/lldb/Host/Predicate.h b/lldb/include/lldb/Host/Predicate.h
index 7ad376db06a..791199d8c02 100644
--- a/lldb/include/lldb/Host/Predicate.h
+++ b/lldb/include/lldb/Host/Predicate.h
@@ -435,7 +435,7 @@ public:
}
else
{
- std::cv_status result = m_condition.wait_for(m_mutex, timeout);
+ std::cv_status result = m_condition.wait_for(lock, timeout);
if (result == std::cv_status::timeout)
{
if (timed_out)
OpenPOWER on IntegriCloud