ThreadWeaver
destructedstate.cpp
int currentNumberOfThreads() const override
Returns the current number of threads in the inventory.
Definition: destructedstate.cpp:43
bool isEmpty() const override
Is the queue empty? The queue is empty if no more jobs are queued.
Definition: destructedstate.cpp:65
void requestAbort() override
Request aborts of the currently executed jobs.
Definition: destructedstate.cpp:80
void enqueue(const QVector< JobPointer > &job) override
Queue a vector of jobs.
Definition: destructedstate.cpp:48
void setMaximumNumberOfThreads(int cap) override
Set the maximum number of threads this Weaver object may start.
Definition: destructedstate.cpp:34
Weaver * weaver() override
The Weaver interface this state handles.
Definition: destructedstate.cpp:24
Thread represents a worker thread in a Queue's inventory.
Definition: thread.h:27
bool isIdle() const override
Is the weaver idle? The weaver is idle if no jobs are queued and no jobs are processed by the threads...
Definition: destructedstate.cpp:70
int queueLength() const override
Returns the number of pending jobs.
Definition: destructedstate.cpp:75
int maximumNumberOfThreads() const override
Get the maximum number of threads this Weaver may start.
Definition: destructedstate.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:10:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:10:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.