From d35031e1e5b1dbe31f960a1054f139f7ba2c3f35 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 30 Nov 2016 10:41:42 +0000 Subject: Use Timeout<> in the Listener class Summary: Communication classes use the Timeout<> class to specify the timeout. Listener class was converted to chrono some time ago, but it used a different meaning for a timeout of zero (Listener: infinite wait, Communication: no wait). Instead, Listener provided separate functions which performed a non-blocking event read. This converts the Listener class to the new Timeout class, to improve consistency. It also allows us to get merge the different GetNextEvent*** and WaitForEvent*** functions into one. No functional change intended. Reviewers: jingham, clayborg, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D27136 llvm-svn: 288238 --- lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp') diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp index 1c88b3fa6ba..2cfd52f5767 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp @@ -67,9 +67,8 @@ struct ContinueFixture { void WaitForRunEvent() { EventSP event_sp; - listener_sp->WaitForEventForBroadcasterWithType( - std::chrono::microseconds(0), &client, - TestClient::eBroadcastBitRunPacketSent, event_sp); + listener_sp->GetEventForBroadcasterWithType( + &client, TestClient::eBroadcastBitRunPacketSent, event_sp, llvm::None); } }; -- cgit v1.2.3