ThreadWeaver

inconstructionstate.h
1 /* -*- C++ -*-
2  This file declares the InConstructionState class.
3 
4  SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <[email protected]>
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 
16 namespace ThreadWeaver
17 {
18 class Weaver;
19 class Queue;
20 
21 /** InConstructionState handles the calls to the Weaver
22  object until the constructor has finished.
23  */
25 {
26 public:
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  /** reimpl */
35  StateId stateId() const override;
36 };
37 
38 }
39 
40 #endif // InConstructionState_H
Base class for all WeaverImpl states.
StateId stateId() const override
reimpl
InConstructionState handles the calls to the Weaver object until the constructor has finished.
JobPointer applyForWork(Thread *th, bool wasBusy) override
Assign a job to an idle thread.
Weaver * weaver() override
Provide correct return type for WeaverImpl states.
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition: queuesignals.h:23
Thread represents a worker thread in a Queue's inventory.
Definition: thread.h:27
void suspend() override
Suspend job processing.
void resume() override
Resume job processing.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:07:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.