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
21/*
22 * InConstructionState handles the calls to the Weaver object until the constructor has finished.
23 */
24class InConstructionState : public WeaverImplState
25{
26public:
27 explicit InConstructionState(QueueSignals *weaver);
28 /* Suspend job processing. */
29 void suspend() override;
30 /* Resume job processing. */
31 void resume() override;
32 /* Assign a job to an idle thread. */
33 JobPointer applyForWork(Thread *th, bool wasBusy) override;
34 StateId stateId() const override;
35};
36
37}
38
39#endif // InConstructionState_H
40

source code of threadweaver/src/inconstructionstate.h