ThreadWeaver
WorkingHardState.cpp
Go to the documentation of this file.
The class Thread is used to represent the worker threads in the weaver's inventory.
Definition: Thread.h:46
StateId
All weaver objects maintain a state of operation which can be queried by the application.
Definition: State.h:48
WeaverImpl * weaver()
Definition: StateImplementation.cpp:35
Job * takeFirstAvailableJob(Job *previous)
Take the first available job out of the queue and return it.
Definition: WeaverImpl.cpp:333
virtual void waitForAvailableJob(Thread *th)
Wait (by suspending the calling thread) until a job becomes available.
Definition: WorkingHardState.cpp:75
Job processing is suspended, but some jobs which where already in progress are not finished yet...
Definition: State.h:56
void assignJobs()
Schedule enqueued jobs to be executed by idle threads.
Definition: WeaverImpl.cpp:288
void debug(int severity, const char *cformat,...)
This method prints a text message on the screen, if debugging is enabled.
Definition: DebuggingAids.h:112
virtual Job * applyForWork(Thread *thread, Job *previous)
Assign a job to the calling thread.
Definition: WeaverImpl.cpp:354
A Job is a simple abstraction of an action that is to be executed in a thread context.
Definition: Job.h:65
void waitForAvailableJob(Thread *th)
Wait for a job to become available.
Definition: WeaverImpl.cpp:359
void blockThreadUntilJobsAreBeingAssigned(Thread *th)
Blocks the calling thread until some actor calls assignJobs.
Definition: WeaverImpl.cpp:364
virtual Job * applyForWork(Thread *th, Job *previous)
Assign a job to an idle thread.
Definition: WorkingHardState.cpp:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.