[Lldb-commits] [lldb] r277013 - Host: correct use of std::condition_variable::wait_for
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 28 11:16:07 PDT 2016
Author: compnerd
Date: Thu Jul 28 13:16:07 2016
New Revision: 277013
URL: http://llvm.org/viewvc/llvm-project?rev=277013&view=rev
Log:
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.
Modified:
lldb/trunk/include/lldb/Host/Predicate.h
Modified: lldb/trunk/include/lldb/Host/Predicate.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/Predicate.h?rev=277013&r1=277012&r2=277013&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/Predicate.h (original)
+++ lldb/trunk/include/lldb/Host/Predicate.h Thu Jul 28 13:16:07 2016
@@ -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)
More information about the lldb-commits
mailing list