ThreadWeaver

sequence.h
1/* -*- C++ -*-
2 This file declares the Sequence class.
3
4 SPDX-FileCopyrightText: 2004-2013 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7
8 $Id: DebuggingAids.h 30 2005-08-16 16:16:04Z mirko $
9*/
10
11#ifndef JOBSEQUENCE_H
12#define JOBSEQUENCE_H
13
14#include "collection.h"
15
16namespace ThreadWeaver
17{
18namespace Private
19{
20class Sequence_Private;
21}
22
23/** @brief A Sequence is a vector of Jobs that will be executed in a sequence.
24 *
25 * It is implemented by automatically creating the necessary dependencies between the Jobs in the sequence.
26 *
27 * Sequence provides a handy cleanup and unwind mechanism: the stop() slot. If it is called, the processing
28 * of the sequence will stop, and all its remaining Jobs will be dequeued.
29 * A Sequence is the first element of itself. */
30class THREADWEAVER_EXPORT Sequence : public Collection
31{
32public:
33 explicit Sequence();
34
35private:
36 Private::Sequence_Private *d();
37 const Private::Sequence_Private *d() const;
38};
39
40}
41
42#endif
A Collection is a vector of Jobs that will be queued together.
Definition collection.h:35
A Sequence is a vector of Jobs that will be executed in a sequence.
Definition sequence.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.