Krita Source Code Documentation
Loading...
Searching...
No Matches
KisReadWriteLockPolicy.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISREADWRITELOCKPOLICY_H
8#define KISREADWRITELOCKPOLICY_H
9
10#include <boost/utility.hpp>
11
12#include <QReadLocker>
13#include <QWriteLocker>
15
17 typedef QReadLocker ReadLocker;
18 typedef QWriteLocker WriteLocker;
19};
20
22 struct FakeLocker : private boost::noncopyable {
23 FakeLocker(QReadWriteLock *) {}
24 };
25
28};
29
31 struct FakeLocker : private boost::noncopyable {
32 FakeLocker(QReadWriteLock *) {}
33 };
34
37};
38#endif // KISREADWRITELOCKPOLICY_H
The KisUpgradeToWriteLocker class is use for RAII style unlocking the read lock and then locking the ...
KisUpgradeToWriteLocker WriteLocker