1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QFUTUREWATCHER_P_H
5#define QFUTUREWATCHER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qfuturewatcher.h>
19
20#include "qfutureinterface_p.h"
21#include <qlist.h>
22
23#include <private/qobject_p.h>
24
25QT_REQUIRE_CONFIG(future);
26
27QT_BEGIN_NAMESPACE
28
29class QFutureWatcherBasePrivate : public QObjectPrivate,
30 public QFutureCallOutInterface
31{
32 Q_DECLARE_PUBLIC(QFutureWatcherBase)
33
34public:
35 QFutureWatcherBasePrivate();
36
37 void postCallOutEvent(const QFutureCallOutEvent &callOutEvent) override;
38 void callOutInterfaceDisconnected() override;
39
40 void sendCallOutEvent(QFutureCallOutEvent *event);
41
42 QAtomicInt pendingResultsReady;
43 int maximumPendingResultsReady;
44
45 QAtomicInt resultAtConnected;
46};
47
48QT_END_NAMESPACE
49
50#endif
51

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtbase/src/corelib/thread/qfuturewatcher_p.h