1/* -*- C++ -*-
2 A dependency between jobs.
3
4 SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#ifndef DEPENDENCY_H
10#define DEPENDENCY_H
11
12#include "jobpointer.h"
13
14namespace ThreadWeaver
15{
16class JobInterface;
17
18class THREADWEAVER_EXPORT Dependency
19{
20public:
21 explicit Dependency(const JobPointer &dependent, const JobPointer &dependee);
22 explicit Dependency(JobInterface *dependent, JobInterface *dependee);
23 explicit Dependency(const JobPointer &dependent, JobInterface *dependee);
24 explicit Dependency(JobInterface *dependent, const JobPointer &dependee);
25
26 JobPointer dependent() const;
27 JobPointer dependee() const;
28
29private:
30 const JobPointer m_dependent;
31 const JobPointer m_dependee;
32};
33
34}
35
36#endif // DEPENDENCY_H
37

source code of threadweaver/src/dependency.h