ThreadWeaver
WeaverInterface.h
virtual ~WeaverInterface()
Definition: WeaverInterface.h:69
virtual void finish()=0
Finish all queued operations, then return.
virtual int maximumNumberOfThreads() const =0
Get the maximum number of threads this Weaver may start.
WeaverInterface provides a common interface for weaver implementations.
Definition: WeaverInterface.h:61
virtual const State & state() const =0
Return the state of the weaver object.
virtual void setMaximumNumberOfThreads(int cap)=0
Set the maximum number of threads this Weaver object may start.
virtual int currentNumberOfThreads() const =0
Returns the current number of threads in the inventory.
Definition: DebuggingAids.h:51
void jobDone(ThreadWeaver::Job *)
This signal is emitted when a job is finished.
We use a State pattern to handle the system state in ThreadWeaver.
Definition: State.h:74
virtual void requestAbort()=0
Request aborts of the currently executed jobs.
void stateChanged(ThreadWeaver::State *)
The Weaver's state has changed.
void finished()
This signal is emitted when the Weaver has finished ALL currently queued jobs.
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:66
virtual int queueLength() const =0
Returns the number of pending jobs.
virtual bool isIdle() const =0
Is the weaver idle? The weaver is idle if no jobs are queued and no jobs are processed by the threads...
virtual bool isEmpty() const =0
Is the queue empty? The queue is empty if no more jobs are queued.
Observers provides signals on some Weaver events that are otherwise only available through objects of...
Definition: WeaverObserver.h:59
virtual void registerObserver(WeaverObserver *)=0
Register an observer.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.