File indexing completed on 2024-05-12 15:50:11
0001 /* -*- C++ -*- 0002 This file is part of ThreadWeaver. 0003 0004 SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <mirko@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #include <QThread> 0010 0011 #include "PriorityDecorator.h" 0012 0013 using namespace ThreadWeaver; 0014 0015 PriorityDecorator::PriorityDecorator(int priority, ThreadWeaver::JobInterface *job, bool autoDelete) 0016 : IdDecorator(job, autoDelete) 0017 , m_priority(priority) 0018 { 0019 } 0020 0021 void PriorityDecorator::run(JobPointer self, Thread *thread) 0022 { 0023 IdDecorator::run(self, thread); 0024 } 0025 0026 int PriorityDecorator::priority() const 0027 { 0028 return m_priority; 0029 }