ThreadWeaver
resourcerestrictionpolicy.cpp
66 TWDEBUG(4, "ResourceRestrictionPolicy::canRun: job %p added, %i customers (cap %i).\n", (void *)job.data(), d->customers.count(), d->cap);
80 TWDEBUG(4, "ResourceRestrictionPolicy::free: job %p completed, %i customers (cap %i).\n", (void *)job.data(), d->customers.count(), d->cap);
QueuePolicy is an interface for customizations of the queueing behaviour of jobs.
Definition queuepolicy.h:39
ResourceRestrictionPolicy is used to limit the number of concurrent accesses to the same resource.
Definition resourcerestrictionpolicy.h:36
void release(JobPointer) override
release() is called if canRun() returned true, but the job has not been executed for external reasons...
Definition resourcerestrictionpolicy.cpp:84
bool canRun(JobPointer) override
canRun() is called before the job is executed.
Definition resourcerestrictionpolicy.cpp:61
void destructed(JobInterface *job) override
destructing() is called when a Job that has this queue policy assigned gets destructed.
Definition resourcerestrictionpolicy.cpp:89
void setCap(int newCap)
Cap the number of simultaneously executing jobs.
Definition resourcerestrictionpolicy.cpp:49
void free(JobPointer) override
free() is called after the job has been executed.
Definition resourcerestrictionpolicy.cpp:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.