1/* -*- C++ -*-
2 This file is part of ThreadWeaver.
3
4 SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef IMAGELOADERJOB_H
10#define IMAGELOADERJOB_H
11
12#include <ThreadWeaver/ThreadWeaver>
13
14class Image;
15
16namespace ThreadWeaver
17{
18class ResourceRestrictionPolicy;
19}
20
21class ImageLoaderJob : public ThreadWeaver::Job
22{
23public:
24 explicit ImageLoaderJob(Image *image, ThreadWeaver::ResourceRestrictionPolicy *throttle);
25 int priority() const override;
26 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override;
27
28private:
29 Image *m_image;
30};
31
32#endif // IMAGELOADERJOB_H
33

source code of threadweaver/examples/ThumbNailer/ImageLoaderJob.h