ThreadWeaver

workinghardstate.h
1 /* -*- C++ -*-
2  This file declares the WorkingHardState class.
3 
4  SPDX-FileCopyrightText: 2005-2013 Mirko Boehm <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 
8  $Id: WorkingHardState.h 32 2005-08-17 08:38:01Z mirko $
9 */
10 
11 #ifndef WorkingHardState_H
12 #define WorkingHardState_H
13 
14 #include "weaver.h"
15 #include "weaverimplstate.h"
16 
17 namespace ThreadWeaver
18 {
19 /* WorkingHardState handles the state dependent calls in the state where
20  * jobs are executed. */
21 class WorkingHardState : public WeaverImplState
22 {
23 public:
24  explicit WorkingHardState(Weaver *weaver);
25  /** Suspend job processing. */
26  void suspend() override;
27  /** Resume job processing. */
28  void resume() override;
29  /** Assign a job to an idle thread. */
30  JobPointer applyForWork(Thread *th, bool wasBusy) override;
31  /** Overload. */
32  void activated() override;
33  /** reimpl */
34  StateId stateId() const override;
35 };
36 
37 }
38 
39 #endif // WorkingHardIState_H
void suspend()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:10:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.