ThreadWeaver
ResourceRestrictionPolicy.h
Go to the documentation of this file.
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition Job.h:66
QueuePolicy is an interface for customizations of the queueing behaviour of sets of jobs.
Definition QueuePolicy.h:60
void destructed(Job *)
destructing() is called when a Job that has this queue policy assigned gets destructed.
Definition ResourceRestrictionPolicy.cpp:102
int cap() const
Definition ResourceRestrictionPolicy.cpp:67
bool canRun(Job *)
canRun() is called before the job is executed.
Definition ResourceRestrictionPolicy.cpp:73
ResourceRestrictionPolicy(int cap=0)
Definition ResourceRestrictionPolicy.cpp:50
void setCap(int newCap)
Cap the number of simulataniously executing jobs.
Definition ResourceRestrictionPolicy.cpp:61
void release(Job *)
release() is called if canRun() returned true, but the job has not been executed for external reasons...
Definition ResourceRestrictionPolicy.cpp:97
void free(Job *)
free() is called after the job has been executed.
Definition ResourceRestrictionPolicy.cpp:85
Definition DebuggingAids.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.