ThreadWeaver::Sequence

Search for usage in LXR

ThreadWeaver::Sequence Class Reference

#include <sequence.h>

Inheritance diagram for ThreadWeaver::Sequence:

Additional Inherited Members

- Public Member Functions inherited from ThreadWeaver::Collection
 Collection (ThreadWeaver::Private::Collection_Private *d)
 
virtual void addJob (JobPointer)
 
int elementCount () const
 
int jobListLength () const
 
Collectionoperator<< (const ThreadWeaver::JobPointer &job)
 
Collectionoperator<< (JobInterface &job)
 
Collectionoperator<< (ThreadWeaver::JobInterface *job)
 
void stop (ThreadWeaver::JobPointer job)
 
- Public Member Functions inherited from ThreadWeaver::Job
 Job ()
 
 Job (Private::Job_Private *d)
 
 ~Job () override
 
void aboutToBeDequeued (QueueAPI *api) override
 
void aboutToBeDequeued_locked (QueueAPI *api) override
 
void aboutToBeQueued (QueueAPI *api) override
 
void aboutToBeQueued_locked (QueueAPI *api) override
 
void assignQueuePolicy (QueuePolicy *) override
 
void blockingExecute () override
 
void execute (const JobPointer &job, Thread *) override
 
Executor * executor () const override
 
bool isFinished () const override
 
QMutexmutex () const override
 
int priority () const override
 
QList< QueuePolicy * > queuePolicies () const override
 
void removeQueuePolicy (QueuePolicy *) override
 
void requestAbort () override
 
Executor * setExecutor (Executor *executor) override
 
void setStatus (Status) override
 
Status status () const override
 
bool success () const override
 
- Protected Member Functions inherited from ThreadWeaver::Collection
void aboutToBeDequeued_locked (QueueAPI *api) override
 
void aboutToBeQueued_locked (QueueAPI *api) override
 
ThreadWeaver::Private::Collection_Private * d ()
 
const ThreadWeaver::Private::Collection_Private * d () const
 
void execute (const JobPointer &job, Thread *) override
 
JobPointer jobAt (int i)
 
virtual int jobListLength_locked () const
 
void run (JobPointer self, Thread *thread) override
 
- Protected Member Functions inherited from ThreadWeaver::Job
Private::Job_Private * d ()
 
const Private::Job_Private * d () const
 
void defaultBegin (const JobPointer &job, Thread *thread) override
 
void defaultEnd (const JobPointer &job, Thread *thread) override
 

Detailed Description

A Sequence is a vector of Jobs that will be executed in a sequence.

It is implemented by automatically creating the necessary dependencies between the Jobs in the sequence.

Sequence provides a handy cleanup and unwind mechanism: the stop() slot. If it is called, the processing of the sequence will stop, and all its remaining Jobs will be dequeued. A Sequence is the first element of itself.

Definition at line 30 of file sequence.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 04:06:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.