KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BACKGROUND_JOB Struct Reference

#include <background_jobs_monitor.h>

Public Member Functions

wxString GetStatus () const
 Worker threads write the status and the UI reads it so it needs a lock.
 
void SetStatus (const wxString &aStatus)
 

Public Attributes

wxString m_name
 
std::shared_ptr< BACKGROUND_JOB_REPORTERm_reporter
 
std::atomic< int > m_maxProgress
 
std::atomic< int > m_currentProgress
 

Private Attributes

std::mutex m_statusMutex
 
wxString m_status
 

Detailed Description

Definition at line 74 of file background_jobs_monitor.h.

Member Function Documentation

◆ GetStatus()

wxString BACKGROUND_JOB::GetStatus ( ) const
inline

Worker threads write the status and the UI reads it so it needs a lock.

Definition at line 80 of file background_jobs_monitor.h.

References m_status, and m_statusMutex.

◆ SetStatus()

void BACKGROUND_JOB::SetStatus ( const wxString & aStatus)
inline

Definition at line 86 of file background_jobs_monitor.h.

References m_status, and m_statusMutex.

Member Data Documentation

◆ m_currentProgress

std::atomic<int> BACKGROUND_JOB::m_currentProgress

Definition at line 96 of file background_jobs_monitor.h.

◆ m_maxProgress

std::atomic<int> BACKGROUND_JOB::m_maxProgress

Definition at line 95 of file background_jobs_monitor.h.

◆ m_name

wxString BACKGROUND_JOB::m_name

Definition at line 92 of file background_jobs_monitor.h.

◆ m_reporter

std::shared_ptr<BACKGROUND_JOB_REPORTER> BACKGROUND_JOB::m_reporter

Definition at line 93 of file background_jobs_monitor.h.

◆ m_status

wxString BACKGROUND_JOB::m_status
private

Definition at line 100 of file background_jobs_monitor.h.

Referenced by GetStatus(), and SetStatus().

◆ m_statusMutex

std::mutex BACKGROUND_JOB::m_statusMutex
mutableprivate

Definition at line 99 of file background_jobs_monitor.h.

Referenced by GetStatus(), and SetStatus().


The documentation for this struct was generated from the following file: