[Lldb-commits] [PATCH] D132578: [lldb] [Core] Use thread for Communication::Write() as well

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 24 11:06:52 PDT 2022


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

When read thread is enabled, perform all the writes in the thread
as well.  Most importantly, this ensures that we do not attempt to
simultaneously read and write the same fd from different threads.

Sponsored by: The FreeBSD Foundation


https://reviews.llvm.org/D132578

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: D132578.455292.patch
Type: text/x-patch
Size: 9193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220824/7f96078d/attachment.bin>


More information about the lldb-commits mailing list