Use a mutex to protect concurrent access to the signpost map.
This fixes nondeterministic crashes in LLDB that appeared after using signposts in the timer implementation.
Differential D94285
[llvm] Protect signpost map with a mutex JDevlieghere on Jan 7 2021, 9:10 PM. Authored by
Details
Use a mutex to protect concurrent access to the signpost map. This fixes nondeterministic crashes in LLDB that appeared after using signposts in the timer implementation.
Diff Detail
Event TimelineComment Actions A sys::SmartMutex equivalent of this would LGTM. Let me know if there's a reason we should stick to std::mutex
|
Timer.cpp uses sys::SmartMutex so that single threaded builds don't have to do the mutex. We should do the same here unless there's a good reason to use std::mutex