[Lldb-commits] [PATCH] D39967: Disable breakpoints before writing memory and re-enable after.
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 22 10:47:09 PST 2018
labath added inline comments.
================
Comment at: include/lldb/Breakpoint/BreakpointSiteList.h:159-175
+ class Guard final {
+ std::recursive_mutex *m_mutex;
- typedef void (*BreakpointSiteSPMapFunc)(lldb::BreakpointSiteSP &bp,
- void *baton);
+ public:
+ explicit Guard(std::recursive_mutex &mutex) : m_mutex(&mutex) {
+ m_mutex->lock();
+ }
----------------
How is this class different from a std::unique_lock ?
https://reviews.llvm.org/D39967
More information about the lldb-commits
mailing list