Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tile_data_swapper.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_TILE_DATA_SWAPPER_H_
7#define KIS_TILE_DATA_SWAPPER_H_
8
9#include <QObject>
10#include <QThread>
11
12#include "kritaimage_export.h"
13
14
16class KisTileData;
17
18class KRITAIMAGE_EXPORT KisTileDataSwapper : public QThread
19{
20 Q_OBJECT
21
22public:
23
25 ~KisTileDataSwapper() override;
26
27 void kick();
28 void terminateSwapper();
29 void checkFreeMemory();
30
31 void testingRereadConfig();
32
33private:
34 void waitForWork();
35 void run() override;
36
37 void doJob();
38 template<class strategy> qint64 pass(qint64 needToFreeMetric);
39
40private:
41 static const qint32 TIMEOUT;
42 static const qint32 DELAY;
43
44private:
45 struct Private;
46 Private * const m_d;
47};
48
49
50
51#endif /* KIS_TILE_DATA_SWAPPER_H_ */
52
static const qint32 DELAY
static const qint32 TIMEOUT