ThreadWeaver::InConstructionState
ThreadWeaver::InConstructionState Class Reference
#include <inconstructionstate.h>
Inheritance diagram for ThreadWeaver::InConstructionState:
Public Member Functions | |
InConstructionState (QueueSignals *weaver) | |
JobPointer | applyForWork (Thread *th, bool wasBusy) override |
void | resume () override |
StateId | stateId () const override |
void | suspend () override |
Public Member Functions inherited from ThreadWeaver::WeaverImplState | |
WeaverImplState (QueueSignals *weaver) | |
int | currentNumberOfThreads () const override |
void | dequeue () override |
bool | dequeue (const JobPointer &job) override |
void | enqueue (const QList< JobPointer > &jobs) override |
void | finish () override |
bool | isEmpty () const override |
bool | isIdle () const override |
int | maximumNumberOfThreads () const override |
int | queueLength () const override |
void | requestAbort () override |
void | reschedule () override |
void | setMaximumNumberOfThreads (int cap) override |
void | shutDown () override |
const State * | state () const override |
void | waitForAvailableJob (Thread *th) override |
Public Member Functions inherited from ThreadWeaver::State | |
State (QueueSignals *weaver) | |
~State () override | |
virtual void | activated () |
QString | stateName () const |
Public Member Functions inherited from ThreadWeaver::QueueInterface |
Additional Inherited Members | |
Protected Member Functions inherited from ThreadWeaver::WeaverImplState | |
const Weaver * | weaver () const override |
Weaver * | weaver () override |
Protected Member Functions inherited from ThreadWeaver::State |
Detailed Description
InConstructionState handles the calls to the Weaver object until the constructor has finished.
Definition at line 24 of file inconstructionstate.h.
Constructor & Destructor Documentation
◆ InConstructionState()
|
explicit |
Definition at line 18 of file inconstructionstate.cpp.
Member Function Documentation
◆ applyForWork()
|
override |
Assign a job to an idle thread.
Definition at line 33 of file inconstructionstate.cpp.
◆ resume()
|
overridevirtual |
Resume job processing.
Implements ThreadWeaver::QueueInterface.
Definition at line 28 of file inconstructionstate.cpp.
◆ stateId()
|
overridevirtual |
◆ suspend()
|
overridevirtual |
Suspend job processing.
Implements ThreadWeaver::QueueInterface.
Definition at line 23 of file inconstructionstate.cpp.
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 Sat Dec 21 2024 16:58:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:06 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.