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