ThreadWeaver
dependencypolicy.h
29 * Be aware of circular dependencies. All dependencies on a Job will be removed if the Job object is destructed.
47 * The dependency of jobA on jobB is removed. If no dependencies are left for jobA, canRun will return true.
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:09 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.