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 QQUICKQQUICKIMAGEPROVIDER_P_H
5#define QQUICKQQUICKIMAGEPROVIDER_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 <private/qtquickglobal_p.h>
19#include <private/qobject_p.h>
20#include <qquickimageprovider.h>
21
22QT_BEGIN_NAMESPACE
23
24class QQuickImageResponsePrivate : public QObjectPrivate
25{
26 Q_DECLARE_PUBLIC(QQuickImageResponse)
27public:
28 QAtomicInteger<bool> finished = false;
29
30 void _q_finished()
31 {
32 // synchronizes-with the loadAcquire in QQuickPixmapReader::processJob:
33 finished.storeRelease(newValue: true);
34 }
35};
36
37
38QT_END_NAMESPACE
39
40#endif // QQUICKQQUICKIMAGEPROVIDER_P_H
41

source code of qtdeclarative/src/quick/util/qquickimageprovider_p.h