|
KiCad PCB EDA Suite
|
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. | |
Result of a connection attempt made on a worker thread.
Definition at line 145 of file dialog_database_lib_settings.h.
| 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.
| 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().
| bool DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::connected = false |
Definition at line 151 of file dialog_database_lib_settings.h.
| 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.
| 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().
| std::vector<std::string> DIALOG_DATABASE_LIB_SETTINGS::CONNECT_JOB::tables |
Definition at line 150 of file dialog_database_lib_settings.h.