ThreadWeaver
SuspendedState.h
Go to the documentation of this file.
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:66
Base class for all ThreadWeaver states.
Definition: StateImplementation.h:44
WeaverImpl * weaver()
Definition: StateImplementation.cpp:35
In SuspendedState, jobs are queued, but will not be executed.
Definition: SuspendedState.h:44
SuspendedState(WeaverImpl *weaver)
Definition: SuspendedState.h:46
virtual void waitForAvailableJob(Thread *th)
Wait (by suspending the calling thread) until a job becomes available.
Definition: SuspendedState.cpp:52
virtual Job * applyForWork(Thread *th, Job *previous)
Assign a job to an idle thread.
Definition: SuspendedState.cpp:46
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: Thread.h:47
A WeaverImpl is the manager of worker threads (Thread objects) to which it assigns jobs from its queu...
Definition: WeaverImpl.h:52
Definition: DebuggingAids.h:51
StateId
All weaver objects maintain a state of operation which can be queried by the application.
Definition: State.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.