ThreadWeaver
State.h
Go to the documentation of this file.
69 };
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:66
We use a State pattern to handle the system state in ThreadWeaver.
Definition: State.h:74
virtual Job * applyForWork(Thread *th, Job *previous)=0
Assign a job to an idle thread.
virtual void waitForAvailableJob(Thread *th)=0
Wait (by suspending the calling thread) until a job becomes available.
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: Thread.h:47
WeaverInterface provides a common interface for weaver implementations.
Definition: WeaverInterface.h:61
Definition: DebuggingAids.h:51
StateId
All weaver objects maintain a state of operation which can be queried by the application.
Definition: State.h:48
@ Suspending
Job processing is suspended, but some jobs which where already in progress are not finished yet.
Definition: State.h:56
@ InConstruction
The object is in the state of construction and has not yet started to process jobs.
Definition: State.h:51
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.