ThreadWeaver
weaverimplstate.h
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition queuesignals.h:24
We use a State pattern to handle the system state in ThreadWeaver.
Definition state.h:56
int queueLength() const override
How many jobs are currently queued?
Definition weaverimplstate.cpp:87
int currentNumberOfThreads() const override
Returns the current number of threads in the inventory.
Definition weaverimplstate.cpp:52
Weaver * weaver() override
Provide correct return type for WeaverImpl states.
Definition weaverimplstate.cpp:30
void enqueue(const QList< JobPointer > &jobs) override
Enqueue a job.
Definition weaverimplstate.cpp:57
void waitForAvailableJob(Thread *th) override
Wait (by suspending the calling thread) until a job becomes available.
Definition weaverimplstate.cpp:102
const State * state() const override
Return the state of the weaver object.
Definition weaverimplstate.cpp:20
void requestAbort() override
Request abort for all queued and currently executed jobs.
Definition weaverimplstate.cpp:92
void setMaximumNumberOfThreads(int cap) override
Set the maximum number of threads this Weaver object may start.
Definition weaverimplstate.cpp:42
int maximumNumberOfThreads() const override
Get the maximum number of threads this Weaver may start.
Definition weaverimplstate.cpp:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.