[Lldb-commits] [lldb] [lldb][progress][NFC] Add groundwork to keep track of progress reports (PR #81026)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 7 13:39:23 PST 2024
================
@@ -38,6 +46,13 @@ Progress::~Progress() {
std::lock_guard<std::mutex> guard(m_mutex);
if (!m_completed)
m_completed = m_total;
+
+ if (m_type == Progress::eProgressCoalecseReports) {
+ --g_map.at(m_title);
+ if (g_map.at(m_title) == 0)
+ g_map.erase(m_title);
----------------
clayborg wrote:
Use the threadsafe `ProgressCategoryMap` here:
```
GetProgressCategoryMap()->Decrement(title);
```
https://github.com/llvm/llvm-project/pull/81026
More information about the lldb-commits
mailing list