summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-11-02 10:13:54 +0000
committerPavel Labath <labath@google.com>2016-11-02 10:13:54 +0000
commit5cddd608cde770e48e7260c06f054a3bed34898d (patch)
treed15116a37cacccf3df24e2685ef590f16f493c0b /lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
parent1f1751182eac4d6267f09b4e1e00bd6d4668f0eb (diff)
downloadbcm5719-llvm-5cddd608cde770e48e7260c06f054a3bed34898d.tar.gz
bcm5719-llvm-5cddd608cde770e48e7260c06f054a3bed34898d.zip
Remove TimeValue usages from MacOSX-Kernel process plugin. NFC
llvm-svn: 285795
Diffstat (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h')
-rw-r--r--lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
index 6e02cb22d51..eed3daa4647 100644
--- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
+++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
@@ -22,7 +22,6 @@
#include "lldb/Core/Listener.h"
#include "lldb/Core/StreamBuffer.h"
#include "lldb/Host/Predicate.h"
-#include "lldb/Host/TimeValue.h"
#include "lldb/lldb-private.h"
class CommunicationKDP : public lldb_private::Communication {
@@ -110,15 +109,13 @@ public:
// get used, and if it doesn't this should be moved to the
// CommunicationKDPClient.
//------------------------------------------------------------------
- uint32_t SetPacketTimeout(uint32_t packet_timeout) {
- const uint32_t old_packet_timeout = m_packet_timeout;
+ std::chrono::seconds SetPacketTimeout(std::chrono::seconds packet_timeout) {
+ const auto old_packet_timeout = m_packet_timeout;
m_packet_timeout = packet_timeout;
return old_packet_timeout;
}
- uint32_t GetPacketTimeoutInMicroSeconds() const {
- return m_packet_timeout * lldb_private::TimeValue::MicroSecPerSec;
- }
+ std::chrono::seconds GetPacketTimeout() const { return m_packet_timeout; }
//------------------------------------------------------------------
// Public Request Packets
@@ -239,7 +236,7 @@ protected:
//------------------------------------------------------------------
uint32_t m_addr_byte_size;
lldb::ByteOrder m_byte_order;
- uint32_t m_packet_timeout;
+ std::chrono::seconds m_packet_timeout;
std::recursive_mutex m_sequence_mutex; // Restrict access to sending/receiving
// packets to a single thread at a time
lldb_private::Predicate<bool> m_is_running;
OpenPOWER on IntegriCloud