ThreadWeaver::State
ThreadWeaver::State Class Referenceabstract
#include <state.h>
Inheritance diagram for ThreadWeaver::State:
Public Member Functions | |
State (QueueSignals *weaver) | |
~State () override | |
virtual void | activated () |
virtual StateId | stateId () const =0 |
QString | stateName () const |
Public Member Functions inherited from ThreadWeaver::QueueInterface | |
virtual int | currentNumberOfThreads () const =0 |
virtual void | dequeue ()=0 |
virtual bool | dequeue (const JobPointer &job)=0 |
virtual void | enqueue (const QList< JobPointer > &jobs)=0 |
virtual void | finish ()=0 |
virtual bool | isEmpty () const =0 |
virtual bool | isIdle () const =0 |
virtual int | maximumNumberOfThreads () const =0 |
virtual int | queueLength () const =0 |
virtual void | requestAbort ()=0 |
virtual void | reschedule ()=0 |
virtual void | resume ()=0 |
virtual void | setMaximumNumberOfThreads (int cap)=0 |
virtual void | shutDown ()=0 |
virtual const State * | state () const =0 |
virtual void | suspend ()=0 |
Protected Member Functions | |
virtual QueueInterface * | weaver () |
virtual const QueueInterface * | weaver () const |
Detailed Description
We use a State pattern to handle the system state in ThreadWeaver.
Constructor & Destructor Documentation
◆ State()
|
explicit |
◆ ~State()
Member Function Documentation
◆ activated()
|
virtual |
The state has been changed so that this object is responsible for state handling.
Reimplemented in ThreadWeaver::SuspendingState.
◆ stateId()
|
pure virtual |
The state Id.
Implemented in ThreadWeaver::DestructedState, ThreadWeaver::InConstructionState, ThreadWeaver::ShuttingDownState, ThreadWeaver::SuspendedState, and ThreadWeaver::SuspendingState.
◆ stateName()
QString State::stateName | ( | ) | const |
◆ weaver() [1/2]
|
protectedvirtual |
The Weaver interface this state handles.
Reimplemented in ThreadWeaver::DestructedState, and ThreadWeaver::WeaverImplState.
◆ weaver() [2/2]
|
protectedvirtual |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.