[Lldb-commits] [lldb] r286371 - Remove TimeValue usage from lldb/Host

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 9 06:53:34 PST 2016


Author: labath
Date: Wed Nov  9 08:53:32 2016
New Revision: 286371

URL: http://llvm.org/viewvc/llvm-project?rev=286371&view=rev
Log:
Remove TimeValue usage from lldb/Host

Modified:
    lldb/trunk/source/Host/common/Socket.cpp
    lldb/trunk/source/Host/windows/ConnectionGenericFileWindows.cpp

Modified: lldb/trunk/source/Host/common/Socket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Socket.cpp?rev=286371&r1=286370&r2=286371&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Socket.cpp (original)
+++ lldb/trunk/source/Host/common/Socket.cpp Wed Nov  9 08:53:32 2016
@@ -15,7 +15,6 @@
 #include "lldb/Host/Host.h"
 #include "lldb/Host/SocketAddress.h"
 #include "lldb/Host/StringConvert.h"
-#include "lldb/Host/TimeValue.h"
 #include "lldb/Host/common/TCPSocket.h"
 #include "lldb/Host/common/UDPSocket.h"
 

Modified: lldb/trunk/source/Host/windows/ConnectionGenericFileWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/windows/ConnectionGenericFileWindows.cpp?rev=286371&r1=286370&r2=286371&view=diff
==============================================================================
--- lldb/trunk/source/Host/windows/ConnectionGenericFileWindows.cpp (original)
+++ lldb/trunk/source/Host/windows/ConnectionGenericFileWindows.cpp Wed Nov  9 08:53:32 2016
@@ -10,7 +10,6 @@
 #include "lldb/Host/windows/ConnectionGenericFileWindows.h"
 #include "lldb/Core/Error.h"
 #include "lldb/Core/Log.h"
-#include "lldb/Host/TimeValue.h"
 
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringRef.h"
@@ -195,9 +194,7 @@ size_t ConnectionGenericFile::Read(void
       // The expected return path.  The operation is pending.  Wait for the
       // operation to complete
       // or be interrupted.
-      TimeValue time_value;
-      time_value.OffsetWithMicroSeconds(timeout_usec);
-      DWORD milliseconds = time_value.milliseconds();
+      DWORD milliseconds = timeout_usec/1000;
       DWORD wait_result =
           ::WaitForMultipleObjects(llvm::array_lengthof(m_event_handles),
                                    m_event_handles, FALSE, milliseconds);




More information about the lldb-commits mailing list