ThreadWeaver
job.cpp
void defaultBegin(const JobPointer &job, Thread *thread) override
Perform standard tasks before starting the execution of a job.
Definition job.cpp:123
void blockingExecute() override
Perform the job synchronously in the current thread.
Definition job.cpp:82
void onFinish(const std::function< void(const JobInterface &job)> &lambda)
Add handler that will be invoked once job has finished.
Definition job.cpp:204
void aboutToBeDequeued(QueueAPI *api) override
This Job is about the be dequeued from the weaver's job queue.
Definition job.cpp:144
Executor * setExecutor(Executor *executor) override
Set the Executor object that is supposed to run the job.
Definition job.cpp:87
void removeQueuePolicy(QueuePolicy *) override
Remove a queue policy from this job.
Definition job.cpp:163
bool isFinished() const override
Returns true if the jobs's execute method finished.
Definition job.cpp:188
void aboutToBeDequeued_locked(QueueAPI *api) override
Called from aboutToBeDequeued() while the mutex is being held.
Definition job.cpp:151
void aboutToBeQueued(QueueAPI *api) override
The job is about to be added to the weaver's job queue.
Definition job.cpp:133
bool success() const override
Return whether the Job finished successfully or not.
Definition job.cpp:113
Executor * executor() const override
Returns the executor currently set on the Job.
Definition job.cpp:92
void aboutToBeQueued_locked(QueueAPI *api) override
Called from aboutToBeQueued() while the mutex is being held.
Definition job.cpp:140
QList< QueuePolicy * > queuePolicies() const override
Return the queue policies assigned to this Job.
Definition job.cpp:172
void defaultEnd(const JobPointer &job, Thread *thread) override
Perform standard task after the execution of a job.
Definition job.cpp:127
QueuePolicy is an interface for customizations of the queueing behaviour of jobs.
Definition queuepolicy.h:39
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.