hanchenye-llvm-project/lldb/source/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
..
Address.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
AddressRange.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
AddressResolver.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
AddressResolverFileLine.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
AddressResolverName.cpp Make lldb::Regex use StringRef. 2016-09-21 16:01:28 +00:00
ArchSpec.cpp Convert AutoComplete related code to StringRef. 2016-11-17 01:37:42 +00:00
Baton.cpp Some more pointer safety in Breakpoint. 2016-09-13 17:53:38 +00:00
Broadcaster.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
CMakeLists.txt Remove ConnectionSharedMemory 2016-11-29 09:42:35 +00:00
Communication.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
Connection.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ConstString.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DataBufferHeap.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DataBufferMemoryMap.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DataEncoder.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
DataExtractor.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
Debugger.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
Disassembler.cpp Rewrite all Property related functions in terms of StringRef. 2016-11-17 18:08:12 +00:00
DynamicLoader.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
EmulateInstruction.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Error.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
Event.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
FastDemangle.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FileLineResolver.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FileSpecList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FormatEntity.cpp Resubmit "Remove an output-parameter from Variable function". 2016-11-18 17:55:04 +00:00
History.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
IOHandler.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
Listener.cpp Use Timeout<> in the Listener class 2016-11-30 10:41:42 +00:00
Log.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
Logging.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Mangled.cpp Convert some Args index-based iteration to range-style iteration. 2016-10-05 23:40:23 +00:00
Module.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
ModuleChild.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ModuleList.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
Opcode.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
PluginManager.cpp Convert AutoComplete related code to StringRef. 2016-11-17 01:37:42 +00:00
RegisterValue.cpp Resubmit "Change RegisterValue getters / setters to use StringRef." 2016-11-17 23:47:31 +00:00
RegularExpression.cpp Convert some Expression parser functions to StringRef. 2016-11-08 04:52:16 +00:00
Scalar.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
SearchFilter.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
Section.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
SourceManager.cpp Remove TimeValue usage from lldb/Core. NFC. 2016-11-09 14:04:08 +00:00
State.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Stream.cpp Rewrite OutputFormattedHelpText in terms of StringRef. 2016-11-08 04:12:42 +00:00
StreamAsynchronousIO.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
StreamCallback.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StreamFile.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StreamGDBRemote.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
StreamString.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
StringList.cpp Convert AutoComplete related code to StringRef. 2016-11-17 01:37:42 +00:00
StructuredData.cpp Don't allow direct access to StreamString's internal buffer. 2016-11-16 21:15:24 +00:00
Timer.cpp Refactor Timer class 2016-11-03 09:14:09 +00:00
UUID.cpp Convert UriParser to use StringRef. 2016-11-17 01:38:02 +00:00
UserID.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
UserSettingsController.cpp Rewrite all Property related functions in terms of StringRef. 2016-11-17 18:08:12 +00:00
VMRange.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Value.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObject.cpp Re-add the StringRef interface changes for Variable. 2016-11-18 19:23:39 +00:00
ValueObjectCast.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
ValueObjectChild.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectConstResult.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectConstResultCast.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectConstResultChild.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectConstResultImpl.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectDynamicValue.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectList.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectMemory.cpp Make ValueObjectMemory::Create accept StringRefs. 2016-11-12 18:17:36 +00:00
ValueObjectRegister.cpp Resubmit "Change RegisterValue getters / setters to use StringRef." 2016-11-17 23:47:31 +00:00
ValueObjectSyntheticFilter.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ValueObjectVariable.cpp Resubmit "Change RegisterValue getters / setters to use StringRef." 2016-11-17 23:47:31 +00:00