ThreadWeaver
DependencyPolicy.cpp
Go to the documentation of this file.
172 debug( 3, "DependencyPolicy::free: not resolving dependencies for %p (execution not successful).\n",
194 for ( JobMultiMap::const_iterator it = d->dependencies().constBegin(); it != d->dependencies().constEnd(); ++it )
198 it.key()->objectName().isEmpty() ? "" : qPrintable ( QString(it.key()->objectName() + QObject::tr ( " of type " )) ),
201 it.value()->objectName().isEmpty() ? "" : qPrintable ( QString(it.value()->objectName() + QObject::tr ( " of type " )) ),
void release(Job *)
release() is called if canRun() returned true, but the job has not been executed for external reasons...
Definition: DependencyPolicy.cpp:178
void addDependency(Job *jobA, Job *jobB)
Add jobB as a dependency of jobA.
Definition: DependencyPolicy.cpp:74
DependencyPolicy implements the way dependencies between Jobs are handled.
Definition: DependencyPolicy.h:49
static DependencyPolicy & instance()
Definition: DependencyPolicy.cpp:152
DependencyPolicy()
Definition: DependencyPolicy.cpp:63
virtual bool success() const
Return whether the Job finished successfully or not.
Definition: Job.cpp:144
QList< Job * > getDependencies(Job *) const
Retrieve a list of dependencies of this job.
Definition: DependencyPolicy.cpp:128
bool canRun(Job *)
canRun() is called before the job is executed.
Definition: DependencyPolicy.cpp:158
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 dumpJobDependencies()
This method should be useful for debugging purposes.
Definition: DependencyPolicy.cpp:189
void destructed(Job *)
destructing() is called when a Job that has this queue policy assigned gets destructed.
Definition: DependencyPolicy.cpp:183
bool hasUnresolvedDependencies(Job *) const
Query whether the job has an unresolved dependency.
Definition: DependencyPolicy.cpp:145
QueuePolicy is an interface for customizations of the queueing behaviour of sets of jobs...
Definition: QueuePolicy.h:59
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:65
void free(Job *)
free() is called after the job has been executed.
Definition: DependencyPolicy.cpp:164
Definition: DependencyPolicy.h:32
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.