KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB Struct Reference

Result of a connection attempt made on a worker thread. More...

Public Member Functions

 ~CONNECT_JOB ()
 Lets the connection go on a pool thread, so a stalled close never blocks the UI thread while the app runs.
 

Public Attributes

DIALOG_DATABASE_LIB_SETTINGS * owner = nullptr
 Cleared on the UI thread when the attempt is abandoned; the worker never reads it.
 
std::unique_ptr< DATABASE_CONNECTION > conn
 
std::vector< std::string > tables
 
bool connected = false
 
std::atomic< bool > started = false
 Set by the worker before it opens anything, so a job that never ran can be destroyed anywhere.
 

Detailed Description

Result of a connection attempt made on a worker thread.

Definition at line 145 of file dialog_database_lib_settings.h.

Constructor & Destructor Documentation

◆ ~CONNECT_JOB()

DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::~CONNECT_JOB ( )

Lets the connection go on a pool thread, so a stalled close never blocks the UI thread while the app runs.

Definition at line 528 of file dialog_database_lib_settings.cpp.

References conn, releaseConnection(), and started.

Member Data Documentation

◆ conn

std::unique_ptr<DATABASE_CONNECTION> DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::conn

Definition at line 149 of file dialog_database_lib_settings.h.

Referenced by ~CONNECT_JOB().

◆ connected

bool DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::connected = false

Definition at line 151 of file dialog_database_lib_settings.h.

◆ owner

DIALOG_DATABASE_LIB_SETTINGS* DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::owner = nullptr

Cleared on the UI thread when the attempt is abandoned; the worker never reads it.

Definition at line 148 of file dialog_database_lib_settings.h.

◆ started

std::atomic<bool> DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::started = false

Set by the worker before it opens anything, so a job that never ran can be destroyed anywhere.

Definition at line 154 of file dialog_database_lib_settings.h.

Referenced by ~CONNECT_JOB().

◆ tables

std::vector<std::string> DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::tables

Definition at line 150 of file dialog_database_lib_settings.h.


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