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 PRIORITYDECORATOR_H
10#define PRIORITYDECORATOR_H
11
12#include <ThreadWeaver/ThreadWeaver>
13
14class PriorityDecorator : public ThreadWeaver::IdDecorator
15{
16public:
17 explicit PriorityDecorator(int priority, ThreadWeaver::JobInterface *job, bool autoDelete = true);
18
19 // FIXME temp
20 void run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) override;
21
22 int priority() const override;
23
24private:
25 int m_priority;
26};
27
28#endif // PRIORITYDECORATOR_H
29

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