ThreadWeaver

dependency.h
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.