9#ifndef LLDB_CORE_PROGRESS_H
10#define LLDB_CORE_PROGRESS_H
92 void Increment(uint64_t amount = 1, std::string update = {});
96 static std::atomic<uint64_t>
g_id;
A class to manage flag bits.
A Progress indicator helper class.
bool m_complete
Set to true when progress has been reported where m_completed == m_total to ensure that we don't send...
void Increment(uint64_t amount=1, std::string update={})
Increment the progress and send a notification to the intalled callback.
uint64_t m_completed
How much work ([0...m_total]) that has been completed.
static std::atomic< uint64_t > g_id
std::optional< lldb::user_id_t > m_debugger_id
The optional debugger ID to report progress to.
std::string m_title
The title of the progress activity.
~Progress()
Destroy the progress object.
void ReportProgress(std::string update={})
const uint64_t m_id
A unique integer identifier for progress reporting.
const uint64_t m_total
Total amount of work, UINT64_MAX for non deterministic progress.
A class that represents a running process on the host machine.