ThreadWeaver
ThreadWeaver.h
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
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
The Weaver class provides the public implementation of the WeaverInterface.
Definition ThreadWeaver.h:66
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 Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.