digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
Loading...
Searching...
No Matches
Digikam::ActionThreadBase Class Reference
+ Inheritance diagram for Digikam::ActionThreadBase:

Public Member Functions

 ActionThreadBase (QObject *const parent=nullptr)
 
void cancel (bool isCancel=true)
 Cancel processing of current jobs under progress.
 
int maximumNumberOfThreads () const
 Return the maximum number of threads used to parallelize collection of job processing.
 
void setDefaultMaximumNumberOfThreads ()
 Reset maximum number of threads used to parallelize collection of job processing to max core detected on computer.
 
void setMaximumNumberOfThreads (int n)
 Adjust maximum number of threads used to parallelize collection of job processing.
 

Protected Slots

void slotJobFinished ()
 

Protected Member Functions

void appendJobs (const ActionJobCollection &jobs)
 Append a collection of jobs to process into QThreadPool.
 
bool isEmpty () const
 Return true if list of pending jobs to process is empty.
 
int pendingCount () const
 Return the number of pending jobs to process.
 
void run () override
 Main thread loop used to process jobs in todo list.
 

Member Function Documentation

◆ appendJobs()

void Digikam::ActionThreadBase::appendJobs ( const ActionJobCollection jobs)
protected

Jobs are add to pending lists and will be deleted by ActionThreadBase, not QThreadPool.

◆ setDefaultMaximumNumberOfThreads()

void Digikam::ActionThreadBase::setDefaultMaximumNumberOfThreads ( )

This method is called in constructor.