ThreadWeaver
JobCollection.cpp
Go to the documentation of this file.
43 JobCollectionJobRunner::JobCollectionJobRunner ( JobCollection* collection, Job* payload, QObject* parent )
virtual bool success() const
Return whether the Job finished successfully or not.
Definition: Job.cpp:144
JobCollection(QObject *parent=0)
Definition: JobCollection.cpp:131
void setFinished(bool status)
Call with status = true to mark this job as done.
Definition: Job.cpp:230
A JobCollection is a vector of Jobs that will be queued together.
Definition: JobCollection.h:50
void aboutToBeQueued(WeaverInterface *weaver)
The job is about to be added to the weaver's job queue.
Definition: JobCollection.cpp:68
WeaverInterface provides a common interface for weaver implementations.
Definition: WeaverInterface.h:61
Definition: DependencyPolicy.h:32
virtual bool canBeExecuted()
canBeExecuted() returns true if all the jobs queue policies agree to it.
Definition: Job.cpp:165
void freeQueuePolicyResources()
Free the queue policies acquired before this job has been executed.
Definition: Job.cpp:149
void debug(int severity, const char *cformat,...)
This method prints a text message on the screen, if debugging is enabled.
Definition: DebuggingAids.h:112
Definition: DebuggingAids.h:51
bool canBeExecuted()
canBeExecuted() returns true if all the jobs queue policies agree to it.
Definition: JobCollection.cpp:58
void aboutToBeDequeued(WeaverInterface *weaver)
Overload to dequeue the collection.
Definition: JobCollection.cpp:181
void done(ThreadWeaver::Job *)
This signal is emitted when the job has been finished (no matter if it succeeded or not).
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
JobCollectionJobRunner(JobCollection *collection, Job *payload, QObject *parent)
Definition: JobCollection.cpp:43
void stop(ThreadWeaver::Job *job)
Stop processing, dequeue all remaining Jobs.
Definition: JobCollection.cpp:155
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:66
Job * jobAt(int i)
Return a reference to the job in the job list at position i.
Definition: JobCollection.cpp:239
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: Thread.h:47
void aboutToBeDequeued(WeaverInterface *weaver)
This Job is about the be dequeued from the weaver's job queue.
Definition: JobCollection.cpp:73
void aboutToBeQueued(WeaverInterface *weaver)
Overload to queue the collection.
Definition: JobCollection.cpp:167
void started(ThreadWeaver::Job *)
This signal is emitted when this job is being processed by a thread.
friend class JobCollectionJobRunner
Definition: JobCollection.h:51
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.