ThreadWeaver
ThreadWeaver.cpp
Go to the documentation of this file.
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition Job.h:66
We use a State pattern to handle the system state in ThreadWeaver.
Definition State.h:74
A WeaverImpl is the manager of worker threads (Thread objects) to which it assigns jobs from its queu...
Definition WeaverImpl.h:52
void finished()
This signal is emitted when the Weaver has finished ALL currently queued jobs.
void jobDone(ThreadWeaver::Job *)
This signal is emitted when a job is finished.
WeaverInterface(QObject *parent=0)
A ThreadWeaver object manages a queue of Jobs.
Definition WeaverInterface.cpp:33
Observers provides signals on some Weaver events that are otherwise only available through objects of...
Definition WeaverObserver.h:59
virtual WeaverInterface * makeWeaverImpl()
The factory method to create the actual Weaver implementation.
Definition ThreadWeaver.cpp:65
static ThreadWeaver::Weaver * instance()
Return the global Weaver instance.
Definition ThreadWeaver.cpp:80
void setMaximumNumberOfThreads(int cap)
Set the maximum number of threads this Weaver object may start.
Definition ThreadWeaver.cpp:142
int maximumNumberOfThreads() const
Get the maximum number of threads this Weaver may start.
Definition ThreadWeaver.cpp:152
int currentNumberOfThreads() const
Returns the current number of threads in the inventory.
Definition ThreadWeaver.cpp:147
Definition DebuggingAids.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.