[Lldb-commits] [PATCH] D106122: Add a mutex to guard access to the ThreadPlanStack class
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 16 15:23:41 PDT 2021
kastiglione accepted this revision.
kastiglione added inline comments.
================
Comment at: lldb/include/lldb/Target/ThreadPlanStack.h:113
std::unordered_map<size_t, PlanStack> m_completed_plan_store;
+ mutable std::recursive_mutex m_stack_mutex;
};
----------------
JDevlieghere wrote:
> Does this actually have to be a recursive mutex?
For example `DiscardAllPlans` calls `DiscardPlan` both of which declare a `lock_guard`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D106122/new/
https://reviews.llvm.org/D106122
More information about the lldb-commits
mailing list