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 "qfutureinterface_p.h"
19#include <qlist.h>
20
21#include <private/qobject_p.h>
22
23QT_REQUIRE_CONFIG(future);
24
25QT_BEGIN_NAMESPACE
26
27class QFutureWatcherBase;
28class QFutureWatcherBasePrivate : public QObjectPrivate,
29 public QFutureCallOutInterface
30{
31 Q_DECLARE_PUBLIC(QFutureWatcherBase)
32
33public:
34 QFutureWatcherBasePrivate();
35
36 void postCallOutEvent(const QFutureCallOutEvent &callOutEvent) override;
37 void callOutInterfaceDisconnected() override;
38
39 void sendCallOutEvent(QFutureCallOutEvent *event);
40
41 QAtomicInt pendingResultsReady;
42 int maximumPendingResultsReady;
43
44 QAtomicInt resultAtConnected;
45};
46
47QT_END_NAMESPACE
48
49#endif
50

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