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.
100 TWDEBUG(result == false, 2, "cannot remove dependency %p->%p, not found.\n", jobA.data(), jobB.data());
123 TWDEBUG(2, "resolved dependencies for %p: %p->%p.\n", job.data(), it.key().data(), it.value().data());
180 TWDEBUG(3, "DependencyPolicy::free: not resolving dependencies for %p (execution not successful).\n", (void *)job.data());
bool hasNext() const const
QMutableMapIterator::Item next()
bool removeDependency(JobPointer jobA, JobPointer jobB)
Remove a dependency.
Definition: dependencypolicy.cpp:79
void resolveDependencies(JobPointer)
Resolve all dependencies for a job.
Definition: dependencypolicy.cpp:110
T & value()
void free(JobPointer) override
free() is called after the job has been executed.
Definition: dependencypolicy.cpp:172
DependencyPolicy implements execution-time dependencies dependencies between Jobs.
Definition: dependencypolicy.h:32
bool canRun(JobPointer) override
canRun() is called before the job is executed.
Definition: dependencypolicy.cpp:166
const Key & key() const const
bool hasUnresolvedDependencies(JobPointer) const
Query whether the job has an unresolved dependency.
Definition: dependencypolicy.cpp:147
QueuePolicy is an interface for customizations of the queueing behaviour of jobs.
Definition: queuepolicy.h:38
void release(JobPointer) override
release() is called if canRun() returned true, but the job has not been executed for external reasons...
Definition: dependencypolicy.cpp:185
void remove()
void destructed(JobInterface *job) override
destructing() is called when a Job that has this queue policy assigned gets destructed.
Definition: dependencypolicy.cpp:191
void addDependency(JobPointer jobA, JobPointer jobB)
Add jobB as a dependency of jobA.
Definition: dependencypolicy.cpp:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:07:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:07:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.