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 | |
16 | namespace ThreadWeaver |
17 | { |
18 | namespace Private |
19 | { |
20 | class 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. */ |
30 | class THREADWEAVER_EXPORT Sequence : public Collection |
31 | { |
32 | public: |
33 | explicit Sequence(); |
34 | |
35 | private: |
36 | Private::Sequence_Private *d(); |
37 | const Private::Sequence_Private *d() const; |
38 | }; |
39 | |
40 | } |
41 | |
42 | #endif |
43 | |