ThreadWeaver 5.109.0
weaverinterface.h
1/* -*- C++ -*-
2 This file declares the WeaverInterface class.
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 WEAVER_INTERFACE_H
10#define WEAVER_INTERFACE_H
11
12#include "jobpointer.h"
13
14namespace ThreadWeaver
15{
16class Job;
17class Thread;
18
19class THREADWEAVER_EXPORT WeaverInterface
20{
21public:
22 virtual ~WeaverInterface()
23 {
24 }
25
30 virtual JobPointer applyForWork(Thread *th, bool wasBusy) = 0;
31
33 virtual void waitForAvailableJob(Thread *th) = 0;
34};
35
36}
37
38#endif // WEAVER_INTERFACE_H