ThreadWeaver
JobCollection.cpp
Go to the documentation of this file.
43JobCollectionJobRunner::JobCollectionJobRunner ( JobCollection* collection, Job* payload, QObject* parent )
Definition DependencyPolicy.h:32
bool canBeExecuted()
canBeExecuted() returns true if all the jobs queue policies agree to it.
Definition JobCollection.cpp:58
void aboutToBeDequeued(WeaverInterface *weaver)
This Job is about the be dequeued from the weaver's job queue.
Definition JobCollection.cpp:73
JobCollectionJobRunner(JobCollection *collection, Job *payload, QObject *parent)
Definition JobCollection.cpp:43
void aboutToBeQueued(WeaverInterface *weaver)
The job is about to be added to the weaver's job queue.
Definition JobCollection.cpp:68
A JobCollection is a vector of Jobs that will be queued together.
Definition JobCollection.h:50
void stop(ThreadWeaver::Job *job)
Stop processing, dequeue all remaining Jobs.
Definition JobCollection.cpp:155
Job * jobAt(int i)
Return a reference to the job in the job list at position i.
Definition JobCollection.cpp:239
void aboutToBeQueued(WeaverInterface *weaver)
Overload to queue the collection.
Definition JobCollection.cpp:167
friend class JobCollectionJobRunner
Definition JobCollection.h:51
void aboutToBeDequeued(WeaverInterface *weaver)
Overload to dequeue the collection.
Definition JobCollection.cpp:181
void finalCleanup()
Perform the task usually done when one individual job is finished, but in our case only when the whol...
Definition JobCollection.cpp:308
JobCollection(QObject *parent=0)
Definition JobCollection.cpp:131
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition Job.h:66
void done(ThreadWeaver::Job *)
This signal is emitted when the job has been finished (no matter if it succeeded or not).
virtual bool success() const
Return whether the Job finished successfully or not.
Definition Job.cpp:144
void freeQueuePolicyResources()
Free the queue policies acquired before this job has been executed.
Definition Job.cpp:149
virtual bool canBeExecuted()
canBeExecuted() returns true if all the jobs queue policies agree to it.
Definition Job.cpp:165
void started(ThreadWeaver::Job *)
This signal is emitted when this job is being processed by a thread.
void setFinished(bool status)
Call with status = true to mark this job as done.
Definition Job.cpp:230
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition Thread.h:47
WeaverInterface provides a common interface for weaver implementations.
Definition WeaverInterface.h:61
Definition DebuggingAids.h:51
void debug(int severity, const char *cformat,...)
This method prints a text message on the screen, if debugging is enabled.
Definition DebuggingAids.h:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Jul 20 2023 00:00:00 by doxygen 1.9.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.