ThreadWeaver
ThreadWeaver::SuspendingState Class Reference
SuspendingState is the state after suspend() has been called, but before all threads finished executing the current job and blocked. More...
#include <SuspendingState.h>
Inheritance diagram for ThreadWeaver::SuspendingState:

Public Member Functions | |
void | activated () |
virtual Job * | applyForWork (Thread *th, Job *previous) |
virtual void | resume () |
StateId | stateId () const |
virtual void | suspend () |
SuspendingState (WeaverImpl *weaver) | |
virtual void | waitForAvailableJob (Thread *th) |
Detailed Description
SuspendingState is the state after suspend() has been called, but before all threads finished executing the current job and blocked.Definition at line 44 of file SuspendingState.h.
Constructor & Destructor Documentation
ThreadWeaver::SuspendingState::SuspendingState | ( | WeaverImpl * | weaver | ) | [inline, explicit] |
Definition at line 47 of file SuspendingState.h.
Member Function Documentation
void SuspendingState::activated | ( | ) | [virtual] |
Overload.
Reimplemented from ThreadWeaver::State.
Definition at line 48 of file SuspendingState.cpp.
Assign a job to an idle thread.
Implements ThreadWeaver::State.
Definition at line 56 of file SuspendingState.cpp.
void SuspendingState::resume | ( | ) | [virtual] |
Resume job processing.
Implements ThreadWeaver::State.
Definition at line 43 of file SuspendingState.cpp.
StateId SuspendingState::stateId | ( | ) | const [virtual] |
void SuspendingState::suspend | ( | ) | [virtual] |
Suspend job processing.
Implements ThreadWeaver::State.
Definition at line 37 of file SuspendingState.cpp.
void SuspendingState::waitForAvailableJob | ( | Thread * | th | ) | [virtual] |
Wait (by suspending the calling thread) until a job becomes available.
Implements ThreadWeaver::State.
Definition at line 66 of file SuspendingState.cpp.
The documentation for this class was generated from the following files: