ThreadWeaver 5.109.0
inconstructionstate.h
1/* -*- C++ -*-
2 This file declares the InConstructionState class.
3
4 SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <mirko@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7
8 $Id: InConstructionState.h 32 2005-08-17 08:38:01Z mirko $
9*/
10
11#ifndef InConstructionState_H
12#define InConstructionState_H
13
14#include "weaverimplstate.h"
15
16namespace ThreadWeaver
17{
18class Weaver;
19class Queue;
20
25{
26public:
29 void suspend() override;
31 void resume() override;
33 JobPointer applyForWork(Thread *th, bool wasBusy) override;
35 StateId stateId() const override;
36};
37
38}
39
40#endif // InConstructionState_H
InConstructionState handles the calls to the Weaver object until the constructor has finished.
Definition inconstructionstate.h:25
StateId stateId() const override
reimpl
void suspend() override
Suspend job processing.
void resume() override
Resume job processing.
JobPointer applyForWork(Thread *th, bool wasBusy) override
Assign a job to an idle thread.
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition queuesignals.h:24
Thread represents a worker thread in a Queue's inventory.
Definition thread.h:28
Base class for all WeaverImpl states.
Definition weaverimplstate.h:21
Weaver * weaver() override
Provide correct return type for WeaverImpl states.