llvm-project/lldb/unittests/Core
Pavel Labath d35031e1e5 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
2016-11-30 10:41:42 +00:00
..
ArchSpecTest.cpp unittests: Specify types in a bunch of unittest EXPECT's 2016-10-17 18:22:03 +00:00
BroadcasterTest.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
CMakeLists.txt Add a couple of tests for the Listener class 2016-11-24 17:10:10 +00:00
DataExtractorTest.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ListenerTest.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
ScalarTest.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StructuredDataTest.cpp Fix TestBreakpointSerialization on windows 2016-09-22 15:26:43 +00:00
TimerTest.cpp Fix some unit test compilation failures. 2016-11-16 21:45:11 +00:00