Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTestableUpdaterContext Class Reference

#include <kis_updater_context.h>

+ Inheritance diagram for KisTestableUpdaterContext:

Public Member Functions

 KisTestableUpdaterContext (qint32 threadCount)
 
- Public Member Functions inherited from KisUpdaterContext
void addMergeJob (KisBaseRectsWalkerSP walker)
 
void addSpontaneousJob (KisSpontaneousJob *spontaneousJob)
 
void addStrokeJob (KisStrokeJob *strokeJob)
 
void continueUpdate (const QRect &rc)
 
int currentLevelOfDetail () const
 
void doSomeUsefulWork ()
 
KisUpdaterContextSnapshotEx getContextSnapshotEx () const
 
void getJobsSnapshot (qint32 &numMergeJobs, qint32 &numStrokeJobs)
 
bool hasSpareThread ()
 
bool isJobAllowed (KisBaseRectsWalkerSP walker)
 
void jobFinished ()
 
void jobThreadExited ()
 
 KisUpdaterContext (qint32 threadCount=useIdealThreadCountTag, KisUpdateScheduler *parent=0)
 
void lock ()
 
void setTestingMode (bool value)
 
void setThreadsLimit (int value)
 
int threadsLimit () const
 
void unlock ()
 
void waitForDone ()
 
 ~KisUpdaterContext ()
 

Additional Inherited Members

- Static Public Attributes inherited from KisUpdaterContext
static const int useIdealThreadCountTag = -1
 
- Protected Member Functions inherited from KisUpdaterContext
qint32 findSpareThread ()
 
- Static Protected Member Functions inherited from KisUpdaterContext
static bool walkerIntersectsJob (KisBaseRectsWalkerSP walker, const KisUpdateJobItem *job)
 
- Protected Attributes inherited from KisUpdaterContext
QReadWriteLock m_exclusiveJobLock
 
QVector< KisUpdateJobItem * > m_jobs
 
QMutex m_lock
 
KisLockFreeLodCounter m_lodCounter
 
int m_numRunningThreads = 0
 
QMutex m_runningThreadsMutex
 
KisUpdateSchedulerm_scheduler
 
bool m_testingMode = false
 
QThreadPool m_threadPool
 
QWaitCondition m_waitForDoneCondition
 

Detailed Description

Definition at line 176 of file kis_updater_context.h.

Constructor & Destructor Documentation

◆ KisTestableUpdaterContext()

KisTestableUpdaterContext::KisTestableUpdaterContext ( qint32 threadCount)

Creates an explicit number of threads

Definition at line 322 of file kis_updater_context.cpp.

323 : KisUpdaterContext(threadCount)
324{
325 setTestingMode(true);
326}
void setTestingMode(bool value)
KisUpdaterContext(qint32 threadCount=useIdealThreadCountTag, KisUpdateScheduler *parent=0)

References KisUpdaterContext::setTestingMode().


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