ThreadWeaver
dependencypolicy.cpp
31 * For each dependency A->B, which means Job B depends on Job A and may only be executed after A has been
32 * finished, an entry will be added with key A and value B. When A is finished, the entry will be removed.
172 TWDEBUG(3, "DependencyPolicy::free: not resolving dependencies for %p (execution not successful).\n", (void *)job.data());
194// for ( JobMultiMap::const_iterator it = d->dependencies().constBegin(); it != d->dependencies().constEnd(); ++it )
DependencyPolicy implements execution-time dependencies dependencies between Jobs.
Definition dependencypolicy.h:33
bool removeDependency(JobPointer jobA, JobPointer jobB)
Remove a dependency.
Definition dependencypolicy.cpp:79
bool hasUnresolvedDependencies(JobPointer) const
Query whether the job has an unresolved dependency.
Definition dependencypolicy.cpp:139
bool canRun(JobPointer) override
canRun() is called before the job is executed.
Definition dependencypolicy.cpp:158
void resolveDependencies(JobPointer)
Resolve all dependencies for a job.
Definition dependencypolicy.cpp:106
void addDependency(JobPointer jobA, JobPointer jobB)
Add jobB as a dependency of jobA.
Definition dependencypolicy.cpp:59
static DependencyPolicy & instance()
Retrieve a list of dependencies of this job.
Definition dependencypolicy.cpp:152
void destructed(JobInterface *job) override
destructing() is called when a Job that has this queue policy assigned gets destructed.
Definition dependencypolicy.cpp:183
void release(JobPointer) override
release() is called if canRun() returned true, but the job has not been executed for external reasons...
Definition dependencypolicy.cpp:177
void free(JobPointer) override
free() is called after the job has been executed.
Definition dependencypolicy.cpp:164
QueuePolicy is an interface for customizations of the queueing behaviour of jobs.
Definition queuepolicy.h:39
bool contains(const Key &key) const const
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
QList< Key > keys() const const
bool hasNext() const const
const Key & key() const const
Item next()
void remove()
T & value()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.