[Lldb-commits] [PATCH] D132283: [lldb] [Core] Reimplement Communication::ReadThread using MainLoop

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 20 01:09:12 PDT 2022


mgorny created this revision.
mgorny added reviewers: labath, emaste, krytarowski, jingham.
Herald added a subscriber: arichardson.
Herald added a project: All.
mgorny requested review of this revision.

Use MainLoop to implement Communication::ReadThread() instead of
blocking reads.  Most importantly, this makes it possible to use
the newly implemented TriggerPendingCallbacks() mechanism to immediately
interrupt waiting for new data.  This in turn will make it possible to
enable the possibility of writing to the descriptor using the same
thread.

Sponsored by: The FreeBSD Foundation


https://reviews.llvm.org/D132283

Files:
  lldb/include/lldb/Core/Communication.h
  lldb/source/Core/Communication.cpp
  lldb/unittests/Core/CommunicationTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132283.454172.patch
Type: text/x-patch
Size: 7508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220820/08e48016/attachment-0001.bin>


More information about the lldb-commits mailing list