ThreadWeaver
Job.cpp
Go to the documentation of this file.
#define P_ASSERT(x)
P_ASSERT ensures that error messages occur in the correct order.
Definition: DebuggingAids.h:103
Definition: DependencyPolicy.h:32
Definition: Job_p.h:39
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:66
void done(ThreadWeaver::Job *)
This signal is emitted when the job has been finished (no matter if it succeeded or not).
virtual bool success() const
Return whether the Job finished successfully or not.
Definition: Job.cpp:144
virtual void aboutToBeQueued(WeaverInterface *weaver)
The job is about to be added to the weaver's job queue.
Definition: Job.cpp:157
void freeQueuePolicyResources()
Free the queue policies acquired before this job has been executed.
Definition: Job.cpp:149
virtual bool canBeExecuted()
canBeExecuted() returns true if all the jobs queue policies agree to it.
Definition: Job.cpp:165
void started(ThreadWeaver::Job *)
This signal is emitted when this job is being processed by a thread.
void setFinished(bool status)
Call with status = true to mark this job as done.
Definition: Job.cpp:230
virtual void aboutToBeDequeued(WeaverInterface *weaver)
This Job is about the be dequeued from the weaver's job queue.
Definition: Job.cpp:161
QueuePolicy is an interface for customizations of the queueing behaviour of sets of jobs.
Definition: QueuePolicy.h:60
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: Thread.h:47
WeaverInterface provides a common interface for weaver implementations.
Definition: WeaverInterface.h:61
Definition: DebuggingAids.h:51
void debug(int severity, const char *cformat,...)
This method prints a text message on the screen, if debugging is enabled.
Definition: DebuggingAids.h:112
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.