[Lldb-commits] [lldb] r124891 - /lldb/branches/apple/calcite/lldb/source/Target/Process.cpp
Jim Ingham
jingham at apple.com
Fri Feb 4 11:07:34 PST 2011
Author: jingham
Date: Fri Feb 4 13:07:34 2011
New Revision: 124891
URL: http://llvm.org/viewvc/llvm-project?rev=124891&view=rev
Log:
The second timeout should be long, not infinite to avoid hangs, but effectively so to allow the other threads a chance to run and unblock whatever resources they were holding.
Modified:
lldb/branches/apple/calcite/lldb/source/Target/Process.cpp
Modified: lldb/branches/apple/calcite/lldb/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/apple/calcite/lldb/source/Target/Process.cpp?rev=124891&r1=124890&r2=124891&view=diff
==============================================================================
--- lldb/branches/apple/calcite/lldb/source/Target/Process.cpp (original)
+++ lldb/branches/apple/calcite/lldb/source/Target/Process.cpp Fri Feb 4 13:07:34 2011
@@ -2811,7 +2811,11 @@
if (single_thread_timeout_usec != 0)
{
real_timeout = TimeValue::Now();
- real_timeout.OffsetWithMicroSeconds(single_thread_timeout_usec);
+ if (first_timeout)
+ real_timeout.OffsetWithMicroSeconds(single_thread_timeout_usec);
+ else
+ real_timeout.OffsetWithSeconds(2);
+
timeout_ptr = &real_timeout;
}
}
More information about the lldb-commits
mailing list