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