[Lldb-commits] [PATCH] D157159: [lldb] Properly protect the Communication class with reader/writer lock

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 4 16:41:04 PDT 2023


JDevlieghere created this revision.
JDevlieghere added reviewers: aprantl, augusto2112.
Herald added a project: All.
JDevlieghere requested review of this revision.

The Communication class was trying to (ab)use `unique_ptr's` atomic properties to protected it from concurrent access. Replace it with a regular reader/writer lock.


https://reviews.llvm.org/D157159

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157159.547403.patch
Type: text/x-patch
Size: 6204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230804/8df1c4dc/attachment.bin>


More information about the lldb-commits mailing list