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