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

The part of a worker that outlives its owner while a caller is still inside Run. More...

Public Attributes

std::mutex m
 
std::atomic< bool > stopping { false }
 
std::function< bool()> init
 
std::function< void()> exit
 
std::function< void()> onAbandon
 
std::shared_ptr< DB_WORKER_CORE > core
 
std::thread thread
 

Detailed Description

The part of a worker that outlives its owner while a caller is still inside Run.

Definition at line 243 of file db_worker_thread.cpp.

Member Data Documentation

◆ core

std::shared_ptr<DB_WORKER_CORE> DB_WORKER_STATE::core

Definition at line 251 of file db_worker_thread.cpp.

◆ exit

std::function<void()> DB_WORKER_STATE::exit

Definition at line 248 of file db_worker_thread.cpp.

◆ init

std::function<bool()> DB_WORKER_STATE::init

Definition at line 247 of file db_worker_thread.cpp.

◆ m

std::mutex DB_WORKER_STATE::m

Definition at line 245 of file db_worker_thread.cpp.

◆ onAbandon

std::function<void()> DB_WORKER_STATE::onAbandon

Definition at line 249 of file db_worker_thread.cpp.

◆ stopping

std::atomic<bool> DB_WORKER_STATE::stopping { false }

Definition at line 246 of file db_worker_thread.cpp.

◆ thread

std::thread DB_WORKER_STATE::thread

Definition at line 252 of file db_worker_thread.cpp.


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