KiCad PCB EDA Suite
Loading...
Searching...
No Matches
S3D::MODEL_IMPORT_QUEUE::STATE Struct Reference

Classes

struct  CANCELLATION
 
struct  JOB
 

Public Member Functions

 STATE ()
 
std::uint64_t Submit (std::string aFileName, const MODEL_IMPORT_OPTIONS &aOptions, COMPLETION aCompletion)
 
void Cancel ()
 
void Stop ()
 
void Run () noexcept
 
void Process (JOB aJob, const std::shared_ptr< CANCELLATION > &aCancellation) noexcept
 

Public Attributes

std::mutex stopMutex
 
std::mutex mutex
 
std::condition_variable condition
 
std::optional< JOB > pending
 
std::shared_ptr< CANCELLATION > activeCancellation
 
std::uint64_t generation = 0
 
bool stopping = false
 
std::thread worker
 

Detailed Description

Definition at line 30 of file model_import_queue.cpp.

Constructor & Destructor Documentation

◆ STATE()

S3D::MODEL_IMPORT_QUEUE::STATE::STATE ( )
inline

Definition at line 45 of file model_import_queue.cpp.

References Run(), and worker.

Member Function Documentation

◆ Cancel()

void S3D::MODEL_IMPORT_QUEUE::STATE::Cancel ( )
inline

Definition at line 81 of file model_import_queue.cpp.

References activeCancellation, mutex, and pending.

◆ Process()

void S3D::MODEL_IMPORT_QUEUE::STATE::Process ( JOB aJob,
const std::shared_ptr< CANCELLATION > & aCancellation )
inlinenoexcept

Definition at line 150 of file model_import_queue.cpp.

References activeCancellation, S3D::ImportModel(), mutex, result, and stopping.

Referenced by Run().

◆ Run()

void S3D::MODEL_IMPORT_QUEUE::STATE::Run ( )
inlinenoexcept

Definition at line 113 of file model_import_queue.cpp.

References activeCancellation, condition, mutex, pending, Process(), and stopping.

Referenced by STATE().

◆ Stop()

void S3D::MODEL_IMPORT_QUEUE::STATE::Stop ( )
inline

Definition at line 90 of file model_import_queue.cpp.

References activeCancellation, condition, mutex, pending, stopMutex, stopping, and worker.

◆ Submit()

std::uint64_t S3D::MODEL_IMPORT_QUEUE::STATE::Submit ( std::string aFileName,
const MODEL_IMPORT_OPTIONS & aOptions,
COMPLETION aCompletion )
inline

Definition at line 54 of file model_import_queue.cpp.

References activeCancellation, condition, generation, mutex, pending, and stopping.

Member Data Documentation

◆ activeCancellation

std::shared_ptr<CANCELLATION> S3D::MODEL_IMPORT_QUEUE::STATE::activeCancellation

Definition at line 181 of file model_import_queue.cpp.

Referenced by Cancel(), Process(), Run(), Stop(), and Submit().

◆ condition

std::condition_variable S3D::MODEL_IMPORT_QUEUE::STATE::condition

Definition at line 179 of file model_import_queue.cpp.

Referenced by Run(), Stop(), and Submit().

◆ generation

std::uint64_t S3D::MODEL_IMPORT_QUEUE::STATE::generation = 0

Definition at line 182 of file model_import_queue.cpp.

Referenced by Submit().

◆ mutex

std::mutex S3D::MODEL_IMPORT_QUEUE::STATE::mutex

Definition at line 178 of file model_import_queue.cpp.

Referenced by Cancel(), Process(), Run(), Stop(), and Submit().

◆ pending

std::optional<JOB> S3D::MODEL_IMPORT_QUEUE::STATE::pending

Definition at line 180 of file model_import_queue.cpp.

Referenced by Cancel(), Run(), Stop(), and Submit().

◆ stopMutex

std::mutex S3D::MODEL_IMPORT_QUEUE::STATE::stopMutex

Definition at line 177 of file model_import_queue.cpp.

Referenced by Stop().

◆ stopping

bool S3D::MODEL_IMPORT_QUEUE::STATE::stopping = false

Definition at line 183 of file model_import_queue.cpp.

Referenced by Process(), Run(), Stop(), and Submit().

◆ worker

std::thread S3D::MODEL_IMPORT_QUEUE::STATE::worker

Definition at line 184 of file model_import_queue.cpp.

Referenced by STATE(), and Stop().


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