[Lldb-commits] [PATCH] D51319: Use a RAII guard to control access to DisassemblerLLVMC.

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 27 16:33:17 PDT 2018


teemperor updated this revision to Diff 162775.
teemperor retitled this revision from "Use a RAII guard to lock/unlock DisassemblerLLVMC [NFC]" to "Use a RAII guard to control access to DisassemblerLLVMC.".
teemperor edited the summary of this revision.
teemperor added a comment.

- Got rid of Lock/Unlock.
- Replaced guard with a mandatory scope guard that grants exclusive access to the debugger.
- Added a second GetDisasmToUse that reuses an existing guard object to fix the resulting deadlocks.


https://reviews.llvm.org/D51319

Files:
  source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
  source/Plugins/Disassembler/llvm/DisassemblerLLVMC.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51319.162775.patch
Type: text/x-patch
Size: 9278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180827/0fcefa22/attachment-0001.bin>


More information about the lldb-commits mailing list