Krita Source Code Documentation
Loading...
Searching...
No Matches
KisFakeRunnableStrokeJobsExecutor.cpp
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
8
10#include <kis_assert.h>
11
12#include <QVector>
13
18
23
25{
26 Q_FOREACH (KisRunnableStrokeJobDataBase *data, list) {
28 (data->sequentiality() != KisStrokeJobData::BARRIER && "barrier jobs are not supported on the fake executor"));
29 KIS_SAFE_ASSERT_RECOVER_NOOP(data->exclusivity() != KisStrokeJobData::EXCLUSIVE && "exclusive jobs are not supported on the fake executor");
30
31 data->run();
32 }
33
34 qDeleteAll(list);
35}
void addRunnableJobs(const QVector< KisRunnableStrokeJobDataBase * > &list) override
virtual void run()=0
Sequentiality sequentiality()
#define KIS_SAFE_ASSERT_RECOVER_NOOP(cond)
Definition kis_assert.h:130