Krita Source Code Documentation
Loading...
Searching...
No Matches
KisLockFrameGenerationLock.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISLOCKFRAMEGENERATIONLOCK_H
8#define KISLOCKFRAMEGENERATIONLOCK_H
9
10#include <kritaimage_export.h>
11#include <KisAdaptedLock.h>
12
14
20class KRITAIMAGE_EXPORT KisLockFrameGenerationLockAdapter
21{
22public:
24
25 bool try_lock();
26 void lock();
27 void unlock();
28
29private:
30 KisImageAnimationInterface *m_interface {nullptr};
31};
32
34
35#endif // KISLOCKFRAMEGENERATIONLOCK_H
#define KIS_DECLARE_ADAPTED_LOCK(Name, Adapter)