Introduce chrono to the Communication class
authorPavel Labath <labath@google.com>
Fri, 25 Nov 2016 11:58:44 +0000 (11:58 +0000)
committerPavel Labath <labath@google.com>
Fri, 25 Nov 2016 11:58:44 +0000 (11:58 +0000)
commitc4063eee0d9ad122bb346a6c9a8e9546e24c1291
treeccb88653e0257b85b225a6898314fbc3ffe1eb01
parent8424b03d002ab3069192d0ba5bac32168df228e9
Introduce chrono to the Communication class

This replaces the raw integer timeout parameters in the class with their
chrono-based equivalents.  To achieve this, I have moved the Timeout class to a
more generic place and added a quick unit test for it.

llvm-svn: 287920
lldb/include/lldb/Core/Communication.h
lldb/include/lldb/Utility/Timeout.h [new file with mode: 0644]
lldb/source/API/SBCommunication.cpp
lldb/source/Core/Communication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/TimeoutTest.cpp [new file with mode: 0644]